From 8e95248ef3310c6a1d028c6ff322349d3dacee8c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 21 Oct 2022 00:29:24 +1000 Subject: [PATCH] GL/Context: Always prefer GLES on Android --- src/common/gl/context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/gl/context.cpp b/src/common/gl/context.cpp index 34d1c91a9..3812cd94a 100644 --- a/src/common/gl/context.cpp +++ b/src/common/gl/context.cpp @@ -44,7 +44,9 @@ namespace GL { static bool ShouldPreferESContext() { -#ifndef _MSC_VER +#if defined(__ANDROID__) + return true; +#elif !defined(_MSC_VER) const char* value = std::getenv("PREFER_GLES_CONTEXT"); return (value && std::strcmp(value, "1") == 0); #else