From 4c2bfc18b9161449c5df7abf3e5112e16c004a75 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 9 Nov 2010 14:41:13 -0800 Subject: [PATCH] DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 2d1a2786a41a0..ab260d582a700 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -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];