summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-08-13 14:18:55 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-08-13 14:18:55 -0700
commit1e4aa48cfd2b2c13c4f7ace8c9fcb33adfa18661 (patch)
treefc705112d65781585cc265ee0f61c095631f1289
parent876247784ee6202066abdefd8366f2e09e681fab (diff)
parentab5750115df3143de46cee934422ffea65765480 (diff)
Merge "fix [2912927] Can't get NV_draw_path extension to work" into gingerbread
-rw-r--r--opengl/libs/EGL/egl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index 315a2a361631..94b60a106410 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -1409,7 +1409,9 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
egl_connection_t* const cnx = &gEGLImpl[i];
if (cnx->dso && cnx->egl.eglGetProcAddress) {
found = true;
- cnx->hooks[i]->ext.extensions[slot] =
+ // Extensions are independent of the bound context
+ cnx->hooks[GLESv1_INDEX]->ext.extensions[slot] =
+ cnx->hooks[GLESv2_INDEX]->ext.extensions[slot] =
cnx->egl.eglGetProcAddress(procname);
}
}
@@ -1421,7 +1423,6 @@ __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname)
}
pthread_mutex_unlock(&gInitDriverMutex);
-
return addr;
}