progs/egl: Pass EGLDisplay to eglCopyBuffers.

X Display was wrongly passed to eglCopyBuffers.
This commit is contained in:
Chia-I Wu
2010-01-18 16:30:07 +08:00
parent ede755af4c
commit 8311a49b2d
+1 -1
View File
@@ -604,7 +604,7 @@ event_loop(struct egl_manager *eman, EGLint surface_type, EGLint w, EGLint h)
break;
case EGL_PBUFFER_BIT:
eglWaitClient();
if (!eglCopyBuffers(eman->xdpy, eman->pbuf, eman->xpix))
if (!eglCopyBuffers(eman->dpy, eman->pbuf, eman->xpix))
break;
/* fall through */
case EGL_PIXMAP_BIT: