Commit f13ef6b8 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Force the client dimensions to at least 1x1 in sync_gl_drawable.

parent 40953c2a
......@@ -486,6 +486,9 @@ static void sync_gl_drawable(Display *display, struct x11drv_win_data *data)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment