OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
free EGL resources associated to a thread when it terminates
[android-x86/frameworks-native.git]
/
opengl
/
libs
/
GLES_trace
/
src
/
gltrace_context.cpp
diff --git
a/opengl/libs/GLES_trace/src/gltrace_context.cpp
b/opengl/libs/GLES_trace/src/gltrace_context.cpp
index
3a8decc
..
0323e8f
100644
(file)
--- a/
opengl/libs/GLES_trace/src/gltrace_context.cpp
+++ b/
opengl/libs/GLES_trace/src/gltrace_context.cpp
@@
-32,7
+32,7
@@
static pthread_key_t sTLSKey = -1;
static pthread_once_t sPthreadOnceKey = PTHREAD_ONCE_INIT;
void createTLSKey() {
- pthread_key_create(&sTLSKey,
NULL
);
+ pthread_key_create(&sTLSKey,
(void (*)(void*))&releaseContext
);
}
GLTraceContext *getGLTraceContext() {