From 4222092bd5650aa353caad4ef67689498564e592 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 1 Sep 2011 17:50:52 -0700 Subject: fix another bug that prevented the gl debugger to work we didn't set the debug tls properly Change-Id: Iad9cc5b5d230a8eb7f680c4b70925c5e43e73051 --- opengl/libs/GLES2_dbg/src/dbgcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opengl/libs/GLES2_dbg/src/dbgcontext.cpp b/opengl/libs/GLES2_dbg/src/dbgcontext.cpp index ff9be3cef32b..9e77665eba52 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; } -- cgit v1.2.3-59-g8ed1b