diff options
author | Mathias Agopian <mathias@google.com> | 2010-08-13 12:19:04 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-08-13 14:17:58 -0700 |
commit | 4a88b522359c080d4da5ac3f016b3272021655c9 (patch) | |
tree | 2b841c4509d4d6c49b36dd401eeb2da5fee060f4 /opengl | |
parent | a54831c55e6b519619ed04f6ec13e92a4c23a4b8 (diff) | |
download | frameworks_native-4a88b522359c080d4da5ac3f016b3272021655c9.zip frameworks_native-4a88b522359c080d4da5ac3f016b3272021655c9.tar.gz frameworks_native-4a88b522359c080d4da5ac3f016b3272021655c9.tar.bz2 |
fix [2912927] Can't get NV_draw_path extension to work
there was a problem with eglGetProcAddress() which would only work with
GLES 1.x contexts.
Change-Id: I4747671cbf7ed469bb471a377f1d6f36550d24df
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/libs/EGL/egl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 315a2a3..94b60a1 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; } |