Use the dummy pbuffer we create to make current
authorCooper Yuan <cooperyuan@gmail.com>
Mon, 30 Apr 2012 18:16:46 +0000 (14:16 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 30 Apr 2012 18:16:46 +0000 (14:16 -0400)
src/compositor-x11.c

index 6d9bb0e..304a4d5 100644 (file)
@@ -174,8 +174,8 @@ x11_compositor_init_egl(struct x11_compositor *c)
                return -1;
        }
 
-       if (!eglMakeCurrent(c->base.display, EGL_NO_SURFACE,
-                           EGL_NO_SURFACE, c->base.context)) {
+       if (!eglMakeCurrent(c->base.display, c->dummy_pbuffer,
+                           c->dummy_pbuffer, c->base.context)) {
                fprintf(stderr, "failed to make context current\n");
                return -1;
        }