From: Chia-I Wu Date: Sat, 2 Jan 2010 13:57:16 +0000 (+0800) Subject: progs/egl: glGenTextures is called too early in xeglbindtex. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c657c80180255b859b9229a994d111115aaf198d;p=mesa.git progs/egl: glGenTextures is called too early in xeglbindtex. It should be called after eglMakeCurrent. Signed-off-by: Chia-I Wu --- diff --git a/progs/egl/xeglbindtex.c b/progs/egl/xeglbindtex.c index 7e35534f8dd..de0ede92ca4 100644 --- a/progs/egl/xeglbindtex.c +++ b/progs/egl/xeglbindtex.c @@ -79,8 +79,6 @@ make_pbuffer(int width, int height) printf("failed to allocate pbuffer\n"); exit(1); } - - glGenTextures(1, &tex_pbuf); } static void @@ -114,6 +112,8 @@ use_pbuffer(void) glTranslatef(0.0, 0.0, -5.0); glClearColor(0.2, 0.2, 0.2, 0.0); + + glGenTextures(1, &tex_pbuf); } }