progs/egl: Correctly check GL_OES_EGL_image.
authorChia-I Wu <olv@lunarg.com>
Tue, 6 Apr 2010 10:06:03 +0000 (18:06 +0800)
committerChia-I Wu <olv@lunarg.com>
Tue, 6 Apr 2010 10:54:23 +0000 (18:54 +0800)
The hack was added because GL_OES_EGL_image was not exported in the
extension string.

progs/egl/opengles1/texture_from_pixmap.c

index abb8c28..79b9474 100644 (file)
@@ -332,7 +332,6 @@ app_init_exts(struct app_data *data)
    }
 
    exts = (const char *) glGetString(GL_EXTENSIONS);
-   exts = "GL_OES_EGL_image"; /* XXX */
    data->glEGLImageTargetTexture2DOES = (PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)
       eglGetProcAddress("glEGLImageTargetTexture2DOES");
    if (!exts || !strstr(exts, "GL_OES_EGL_image") ||