From 8311a49b2d4c34d17186d6d7e83307eb989a8260 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 18 Jan 2010 16:30:07 +0800 Subject: [PATCH] progs/egl: Pass EGLDisplay to eglCopyBuffers. X Display was wrongly passed to eglCopyBuffers. --- progs/egl/xeglgears.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progs/egl/xeglgears.c b/progs/egl/xeglgears.c index 614a6256037..9fdf4742441 100644 --- a/progs/egl/xeglgears.c +++ b/progs/egl/xeglgears.c @@ -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: -- 2.30.2