GL/Context: Always prefer GLES on Android

This commit is contained in:
Connor McLaughlin 2022-10-21 00:29:24 +10:00
parent 0b0e910892
commit 8e95248ef3

View file

@ -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