http://bugs.winehq.org/show_bug.cgi?id=3738
------- Additional Comments From saulius.krasuckas@elst.vtu.lt 2005-02-11 13:07 ------- Got it. That's a "DesktopDoubleBuffered" registry value from a default X11Drv config key. If I set it to 'Y', exception disappears.
Reversing patch [1] helps me too. If I change code this way:
--- dlls/x11drv/x11drv_main.c 23 Sep 2005 17:21:32 -0000 1.112 +++ dlls/x11drv/x11drv_main.c 2 Nov 2005 19:04:33 -0000 @@ -406,11 +406,11 @@ static BOOL process_attach(void) } } if (!screen_depth) screen_depth = DefaultDepthOfScreen( screen );
/* If OpenGL is available, change the default visual, etc as necessary */ - if (desktop_dbl_buf && (desktop_vi = X11DRV_setup_opengl_visual( display ))) + if ((desktop_vi = X11DRV_setup_opengl_visual( display ))) { visual = desktop_vi->visual; screen = ScreenOfDisplay(display, desktop_vi->screen); screen_depth = desktop_vi->depth; }
exception is gone too. Something is getting not initialized in the file or initialized at wrong time, I guess.
[1] http://www.winehq.org/pipermail/wine-cvs/2005-June/016508.html