winex11: Force the client dimensions to at least 1x1 in sync_gl_drawable.
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 4a41ba5..9939d7e 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -486,6 +486,9 @@
     Drawable glxp;
     Pixmap pix;
 
+    if (w <= 0) w = 1;
+    if (h <= 0) h = 1;
+
     TRACE("Resizing GL drawable 0x%lx to %dx%d\n", data->gl_drawable, w, h);
 #ifdef SONAME_LIBXCOMPOSITE
     if(usexcomposite)