diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-17 09:40:23 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-17 09:40:23 -0400 |
commit | c0bc844094bf239a373171dc18c018ac5c1252c7 (patch) | |
tree | 4f06d9c21620548230b4bdb19833372b2269b37b | |
parent | 870461997a1087f68be8904cbc1a5788fb20a410 (diff) |
compositor-x11: Check the right variable after creating dummy pbuffer
-rw-r--r-- | src/compositor-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor-x11.c b/src/compositor-x11.c index 3a4709c..7452c1c 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -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; } |