diff options
Diffstat (limited to 'EGL/yagl_onscreen_surface.c')
-rw-r--r-- | EGL/yagl_onscreen_surface.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/EGL/yagl_onscreen_surface.c b/EGL/yagl_onscreen_surface.c index e1a3612..042a766 100644 --- a/EGL/yagl_onscreen_surface.c +++ b/EGL/yagl_onscreen_surface.c @@ -438,6 +438,14 @@ struct yagl_onscreen_surface } } + /* + * VIGS driver is unable to handle dummy surfaces + */ + + if (width * height == 0) { + width = height = 1; + } + sfc->tmp_pixmap = dpy->native_dpy->create_pixmap(dpy->native_dpy, width, height, |