progs/egl: Pass EGLDisplay to eglCopyBuffers.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 18 Jan 2010 08:30:07 +0000 (16:30 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 18 Jan 2010 09:07:19 +0000 (17:07 +0800)
X Display was wrongly passed to eglCopyBuffers.

progs/egl/xeglgears.c

index 614a6256037d8f21c6eec12998564acc8b4d4598..9fdf47424416090c0367d24cd408bb3f4f2caf1b 100644 (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: