Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79401f6c authored by Anshuman Dani's avatar Anshuman Dani Committed by Steve Kondik
Browse files

GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
parent 320fd662
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,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;
}