mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GL/Context: Always prefer GLES on Android
This commit is contained in:
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…
Reference in a new issue