From 8311a49b2d4c34d17186d6d7e83307eb989a8260 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 18 Jan 2010 16:30:07 +0800 Subject: 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(-) (limited to 'progs/egl') diff --git a/progs/egl/xeglgears.c b/progs/egl/xeglgears.c index 614a625603..9fdf474244 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: -- cgit v1.2.3