| commit | a45c5479104c2bf4ecc4b797a1a51134e433f023 | [log] [tgz] |
|---|---|---|
| author | Mathias Agopian <mathias@google.com> | Thu Sep 01 17:50:52 2011 -0700 |
| committer | Mathias Agopian <mathias@google.com> | Thu Sep 01 17:50:52 2011 -0700 |
| 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
diff --git a/opengl/libs/GLES2_dbg/src/dbgcontext.cpp b/opengl/libs/GLES2_dbg/src/dbgcontext.cpp index ff9be3c..9e77665 100644 --- a/opengl/libs/GLES2_dbg/src/dbgcontext.cpp +++ b/opengl/libs/GLES2_dbg/src/dbgcontext.cpp
@@ -88,7 +88,7 @@ msg.set_arg1(MAX_COMBINED_TEXTURE_IMAGE_UNITS); Send(msg, cmd); - *(DbgContext **)pthread_getspecific(dbgEGLThreadLocalStorageKey) = dbg; + pthread_setspecific(dbgEGLThreadLocalStorageKey, dbg); return dbg; }