diff options
| author | 2020-01-15 18:15:54 +0000 | |
|---|---|---|
| committer | 2020-01-15 18:15:54 +0000 | |
| commit | 53d23fb81bff7cdc209e3237f0632c94e536a8db (patch) | |
| tree | f5ebb6daf4739a0555e6f7a85ea22a327dfd255c | |
| parent | 123c7b83930a5ed9c4d11fb2a5b0cd9c1dd289db (diff) | |
| parent | c51d5f5bd92e32ce5cbef770afbeca93e0fb0a15 (diff) | |
Merge "OpenGL: Moving comment to the right place"
| -rw-r--r-- | opengl/libs/EGL/egl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index 768d3b54bc..2e183b3ba2 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -172,10 +172,6 @@ egl_connection_t* egl_get_connection() { // ---------------------------------------------------------------------------- -// this mutex protects: -// d->disp[] -// egl_init_drivers_locked() -// static EGLBoolean egl_init_drivers_locked() { if (sEarlyInitState) { // initialized by static ctor. should be set here. @@ -211,6 +207,8 @@ static EGLBoolean egl_init_glesv1_drivers_locked() { return loader.load_glesv1_driver(cnx); } +// this mutex protects driver load logic as a critical section since it accesses to global variable +// like gEGLImpl static pthread_mutex_t sInitDriverMutex = PTHREAD_MUTEX_INITIALIZER; EGLBoolean egl_init_drivers() { |