summaryrefslogtreecommitdiffstats
path: root/opengl/libs
diff options
context:
space:
mode:
authorAnshuman Dani <adani@codeaurora.org>2013-11-05 21:04:00 +0530
committerDileep Kumar Reddi <dkumarre@codeaurora.org>2014-08-06 21:53:35 +0530
commit0627071cc983aadb8d7447fe222b05d15c7c25be (patch)
treed998772c8017fe2619ac2da95e26d75c1029c4ce /opengl/libs
parent8ce28672106956eeff6d0ed2d1d826ec192e58ee (diff)
downloadframeworks_native-0627071cc983aadb8d7447fe222b05d15c7c25be.zip
frameworks_native-0627071cc983aadb8d7447fe222b05d15c7c25be.tar.gz
frameworks_native-0627071cc983aadb8d7447fe222b05d15c7c25be.tar.bz2
GlES2: Add NULL check
Check for NULL before calling thread specific glGetString. CRs-fixed: 569609 Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
Diffstat (limited to 'opengl/libs')
-rw-r--r--opengl/libs/GLES2/gl2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/GLES2/gl2.cpp b/opengl/libs/GLES2/gl2.cpp
index e112fec..ad9af9f 100644
--- a/opengl/libs/GLES2/gl2.cpp
+++ b/opengl/libs/GLES2/gl2.cpp
@@ -183,7 +183,7 @@ const GLubyte * glGetString(GLenum name)
const GLubyte * ret = egl_get_string_for_current_context(name);
if (ret == NULL) {
gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl;
- ret = _c->glGetString(name);
+ if(_c) ret = _c->glGetString(name);
}
return ret;
}