[Bug 29630] OpenGL: Rendering to child window fails with fglrx

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jan 19 12:10:38 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=29630

--- Comment #4 from Lauri Koponen <lauri.koponen at iki.fi> 2012-01-19 12:10:38 CST ---
Now, I don't know (at least yet) why the code was originally written the way it
was, but I got the example working with this change:

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index e6affcb..3937b20 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -591,7 +591,7 @@ static BOOL set_win_format( HWND hwnd, XID fbconfig_id )
         XInstallColormap(gdi_display, attrib.colormap);

         if(data->gl_drawable) XDestroyWindow(gdi_display, data->gl_drawable);
-        data->gl_drawable = XCreateWindow(gdi_display, dummy_parent, -w, 0, w, 
+        data->gl_drawable = XCreateWindow(gdi_display, dummy_parent, 0, 0, w,
h
                                           vis->depth, InputOutput,
vis->visual,
                                           CWColormap | CWOverrideRedirect,
                                           &attrib);

But what is the reason that (-w) is there for?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list