Commit 77b9ec8c authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Don't use the window surface when the pixel format was set.

parent 53e4ddc3
......@@ -165,7 +165,8 @@ static void update_visible_region( struct dce *dce )
if ((win = WIN_GetPtr( top_win )) && win != WND_DESKTOP && win != WND_OTHER_PROCESS)
{
surface = win->surface;
/* don't use a surface to paint the client area of OpenGL windows */
if (!win->pixel_format || (flags & DCX_WINDOW)) surface = win->surface;
if (surface) window_surface_add_ref( surface );
WIN_ReleasePtr( win );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment