winex11: Push down variable attrib down in create_gl_drawable.

This commit is contained in:
Gerald Pfeifer 2013-01-26 02:07:13 +01:00 committed by Alexandre Julliard
parent 462d2129bd
commit e835f034fb
1 changed files with 1 additions and 2 deletions

View File

@ -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)