GL/Context: Always prefer GLES on Android

pull/2912/head
Connor McLaughlin 3 years ago
parent 0b0e910892
commit 8e95248ef3

@ -44,7 +44,9 @@ namespace GL {
static bool ShouldPreferESContext() static bool ShouldPreferESContext()
{ {
#ifndef _MSC_VER #if defined(__ANDROID__)
return true;
#elif !defined(_MSC_VER)
const char* value = std::getenv("PREFER_GLES_CONTEXT"); const char* value = std::getenv("PREFER_GLES_CONTEXT");
return (value && std::strcmp(value, "1") == 0); return (value && std::strcmp(value, "1") == 0);
#else #else

Loading…
Cancel
Save