diff options
author | Mathias Agopian <mathias@google.com> | 2010-04-09 13:37:34 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-04-09 14:26:07 -0700 |
commit | bf41b11ef889b69a5ef75a2e223c95c5cfc5731c (patch) | |
tree | c0c70812d2abe38dd1cabf14488d15a4b1500ead /opengl | |
parent | 83e08455d9d114c2e143a0fc2a98de8df290330f (diff) | |
download | frameworks_native-bf41b11ef889b69a5ef75a2e223c95c5cfc5731c.zip frameworks_native-bf41b11ef889b69a5ef75a2e223c95c5cfc5731c.tar.gz frameworks_native-bf41b11ef889b69a5ef75a2e223c95c5cfc5731c.tar.bz2 |
small cleanup. gEGLImpl should have been static
also added a ctor to initialized it in case we use it ont he stack
one day.
Change-Id: I2736b9bce3d8ba3b74fd029de4c18cca2cdbbf60
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/libs/EGL/egl.cpp | 2 | ||||
-rw-r--r-- | opengl/libs/egl_impl.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 89b3e1f..e6cf792 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -239,7 +239,7 @@ struct tls_t // ---------------------------------------------------------------------------- -egl_connection_t gEGLImpl[IMPL_NUM_IMPLEMENTATIONS]; +static egl_connection_t gEGLImpl[IMPL_NUM_IMPLEMENTATIONS]; static egl_display_t gDisplay[NUM_DISPLAYS]; static pthread_mutex_t gThreadLocalStorageKeyMutex = PTHREAD_MUTEX_INITIALIZER; static pthread_key_t gEGLThreadLocalStorageKey = -1; diff --git a/opengl/libs/egl_impl.h b/opengl/libs/egl_impl.h index 1fba209..c8f529a 100644 --- a/opengl/libs/egl_impl.h +++ b/opengl/libs/egl_impl.h @@ -31,6 +31,7 @@ namespace android { struct egl_connection_t { + inline egl_connection_t() : dso(0) { } void * dso; gl_hooks_t * hooks[2]; EGLint major; |