From ae662b4fe2752c45d107b3bf173d2039dcd68dcb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 4 Aug 2020 01:56:38 +0200 Subject: [PATCH] Cleanup android_gfx_ctx_bind_api --- gfx/drivers_context/android_ctx.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gfx/drivers_context/android_ctx.c b/gfx/drivers_context/android_ctx.c index b3292950d6..c07b52f195 100644 --- a/gfx/drivers_context/android_ctx.c +++ b/gfx/drivers_context/android_ctx.c @@ -238,14 +238,9 @@ static bool android_gfx_ctx_bind_api(void *data, android_api = api; #ifdef HAVE_OPENGLES - version = major * 100 + minor; - if (version > 300) - return false; - if (version < 300) - g_es3 = false; - else if (version == 300) + version = major * 100 + minor; + if (version >= 300) g_es3 = true; - if (api == GFX_CTX_OPENGL_ES_API) return true; #endif