am e2e17e5b
: Merge "GlES2: Add NULL check"
* commit 'e2e17e5b238ccd214c72ec1a1864cf391425f09f': GlES2: Add NULL check
This commit is contained in:
commit
83142a12fb
@ -180,7 +180,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user