From 4577adce8cb547d390a2cbea9e9f9e73eab1b8c2 Mon Sep 17 00:00:00 2001 From: Cooper Yuan Date: Mon, 30 Apr 2012 14:16:46 -0400 Subject: [PATCH] Use the dummy pbuffer we create to make current --- src/compositor-x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor-x11.c b/src/compositor-x11.c index 6d9bb0e..304a4d5 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -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; } -- 2.7.4