GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
This commit is contained in:
Anshuman Dani 2013-11-05 21:04:00 +05:30 committed by Dileep Kumar Reddi
parent 8ce2867210
commit 0627071cc9

View File

@ -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;
}