diff options
| author | 2011-09-01 17:50:52 -0700 | |
|---|---|---|
| committer | 2011-09-01 17:50:52 -0700 | |
| commit | a45c5479104c2bf4ecc4b797a1a51134e433f023 (patch) | |
| tree | b6355e27016443248b74c38ef6c6d6b6c614d8fb | |
| parent | ccfa5c3364a88b0acdbe555b210bd2bc9feb6285 (diff) | |
fix another bug that prevented the gl debugger to work
we didn't set the debug tls properly
Change-Id: Iad9cc5b5d230a8eb7f680c4b70925c5e43e73051
| -rw-r--r-- | opengl/libs/GLES2_dbg/src/dbgcontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/GLES2_dbg/src/dbgcontext.cpp b/opengl/libs/GLES2_dbg/src/dbgcontext.cpp index ff9be3cef3..9e77665eba 100644 --- a/opengl/libs/GLES2_dbg/src/dbgcontext.cpp +++ b/opengl/libs/GLES2_dbg/src/dbgcontext.cpp @@ -88,7 +88,7 @@ DbgContext* CreateDbgContext(const unsigned version, const gl_hooks_t * const ho msg.set_arg1(MAX_COMBINED_TEXTURE_IMAGE_UNITS); Send(msg, cmd); - *(DbgContext **)pthread_getspecific(dbgEGLThreadLocalStorageKey) = dbg; + pthread_setspecific(dbgEGLThreadLocalStorageKey, dbg); return dbg; } |