Cleanup android_gfx_ctx_bind_api
This commit is contained in:
parent
ca328662d0
commit
ae662b4fe2
|
@ -239,13 +239,8 @@ static bool android_gfx_ctx_bind_api(void *data,
|
||||||
|
|
||||||
#ifdef HAVE_OPENGLES
|
#ifdef HAVE_OPENGLES
|
||||||
version = major * 100 + minor;
|
version = major * 100 + minor;
|
||||||
if (version > 300)
|
if (version >= 300)
|
||||||
return false;
|
|
||||||
if (version < 300)
|
|
||||||
g_es3 = false;
|
|
||||||
else if (version == 300)
|
|
||||||
g_es3 = true;
|
g_es3 = true;
|
||||||
|
|
||||||
if (api == GFX_CTX_OPENGL_ES_API)
|
if (api == GFX_CTX_OPENGL_ES_API)
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue