compositor-x11: Check the right variable after creating dummy pbuffer
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 17 May 2012 13:40:23 +0000 (09:40 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 17 May 2012 13:40:23 +0000 (09:40 -0400)
src/compositor-x11.c

index 3a4709c..7452c1c 100644 (file)
@@ -170,7 +170,7 @@ x11_compositor_init_egl(struct x11_compositor *c)
        c->dummy_pbuffer = eglCreatePbufferSurface(c->base.display,
                                                   c->base.config,
                                                   pbuffer_attribs);
-       if (c->base.context == NULL) {
+       if (c->dummy_pbuffer == NULL) {
                fprintf(stderr, "failed to create dummy pbuffer\n");
                return -1;
        }