 
            The pixel format may be changed by wined3d before the application has set its own pixel format, which may be different, and we want later OpenGL calls from the application, such as its context creation, to use the application selected pixel format.
 
            From: Rémi Bernon rbernon@codeweavers.com
The pixel format may be changed by wined3d before the application has set its own pixel format, which may be different, and we want later OpenGL calls from the application, such as its context creation, to use the application selected pixel format.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58791 --- dlls/win32u/window.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index 96a810845af..45012ffba4d 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -1550,7 +1550,10 @@ BOOL set_window_pixel_format( HWND hwnd, int format, BOOL internal ) if (internal) win->internal_pixel_format = format; else + { + win->internal_pixel_format = 0; win->pixel_format = format; + } release_win_ptr( win );
update_window_state( hwnd );

