forked from enlightenment/efl
evas/gl: Add null checks
Summary: Add null check for glGetString version check and evgl_engine Test Plan: Local tests Reviewers: jpeg Reviewed By: jpeg Subscribers: wonsik, cedric Differential Revision: https://phab.enlightenment.org/D2699
This commit is contained in:
parent
4af5cba8e9
commit
6f55b135c2
|
@ -386,6 +386,11 @@ _evas_gl_common_version_check(int *gles_ver)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
version = (char *)glGetString(GL_VERSION);
|
version = (char *)glGetString(GL_VERSION);
|
||||||
|
if (!version)
|
||||||
|
{
|
||||||
|
/* Something is wrong! */
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* OpengL ES
|
* OpengL ES
|
||||||
|
|
|
@ -2890,6 +2890,7 @@ evgl_direct_partial_info_clear()
|
||||||
void
|
void
|
||||||
evgl_direct_override_get(Eina_Bool *override, Eina_Bool *force_off)
|
evgl_direct_override_get(Eina_Bool *override, Eina_Bool *force_off)
|
||||||
{
|
{
|
||||||
|
if (!evgl_engine) return;
|
||||||
if (override) *override = evgl_engine->direct_override;
|
if (override) *override = evgl_engine->direct_override;
|
||||||
if (force_off) *force_off = evgl_engine->direct_force_off;
|
if (force_off) *force_off = evgl_engine->direct_force_off;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue