From e835f034fb1eb59ec6fe16e8ff05feccc2a656bb Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 26 Jan 2013 02:07:13 +0100 Subject: [PATCH] winex11: Push down variable attrib down in create_gl_drawable. --- dlls/winex11.drv/opengl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index dded33369ad..ee6240261fb 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1222,8 +1222,6 @@ static void free_gl_drawable( struct gl_drawable *gl ) */ static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl ) { - XSetWindowAttributes attrib; - gl->drawable = 0; if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow()) /* top-level window */ @@ -1241,6 +1239,7 @@ static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl ) else if(usexcomposite) { static Window dummy_parent; + XSetWindowAttributes attrib; attrib.override_redirect = True; if (!dummy_parent)