OSDN Git Service

DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer...
authorMathias Agopian <mathias@google.com>
Tue, 9 Nov 2010 22:41:13 +0000 (14:41 -0800)
committerMathias Agopian <mathias@google.com>
Tue, 9 Nov 2010 22:41:13 +0000 (14:41 -0800)
We just make sure eglGetProcAddress() will return NULL for
 glEGLImageTargetTexture2DOES
 glEGLImageTargetRenderbufferStorageOES

which is better than returning the address of the wrong implementation.

the correct fix is more involved.

Change-Id: I585a1f40e564f862e5dd382224609ccd069cd3b5

opengl/libs/EGL/egl.cpp

index 2d1a278..ab260d5 100644 (file)
@@ -407,6 +407,10 @@ static const extention_map_t gExtentionMap[] = {
             (__eglMustCastToProperFunctionPointerType)&eglDestroyImageKHR }, 
     { "eglSetSwapRectangleANDROID", 
             (__eglMustCastToProperFunctionPointerType)&eglSetSwapRectangleANDROID }, 
+    { "glEGLImageTargetTexture2DOES",
+            (__eglMustCastToProperFunctionPointerType)NULL },
+    { "glEGLImageTargetRenderbufferStorageOES",
+            (__eglMustCastToProperFunctionPointerType)NULL },
 };
 
 extern const __eglMustCastToProperFunctionPointerType gExtensionForwarders[MAX_NUMBER_OF_GL_EXTENSIONS];