compositor-x11: Check the right variable after creating dummy pbuffer
This commit is contained in:
@@ -170,7 +170,7 @@ x11_compositor_init_egl(struct x11_compositor *c)
|
|||||||
c->dummy_pbuffer = eglCreatePbufferSurface(c->base.display,
|
c->dummy_pbuffer = eglCreatePbufferSurface(c->base.display,
|
||||||
c->base.config,
|
c->base.config,
|
||||||
pbuffer_attribs);
|
pbuffer_attribs);
|
||||||
if (c->base.context == NULL) {
|
if (c->dummy_pbuffer == NULL) {
|
||||||
fprintf(stderr, "failed to create dummy pbuffer\n");
|
fprintf(stderr, "failed to create dummy pbuffer\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user