Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
06ae94a141 hardcode gles2
Some checks failed
Android CI / build (push) Has been cancelled
C/C++ CI / x86_64-pc-windows-msvc (push) Has been cancelled
C/C++ CI / i686-pc-windows-msvc (push) Has been cancelled
C/C++ CI / x86_64-pc-linux-gnu (push) Has been cancelled
C/C++ CI / x86_64-w64-mingw32 (push) Has been cancelled
C/C++ CI / apple-darwin (push) Has been cancelled
C/C++ CI / apple-ios (push) Has been cancelled
C/C++ CI / libretro-x86_64-pc-linux-gnu (push) Has been cancelled
C/C++ CI / libretro-x86_64-w64-mingw32 (push) Has been cancelled
Nintendo Switch CI / libretro (push) Has been cancelled
Nintendo Switch CI / standalone (push) Has been cancelled
Windows UWP CI / build (push) Has been cancelled
2024-01-01 14:41:59 +01:00
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,10 @@
void GLGraphicsContext::findGLVersion()
{
majorVersion= 2;
_isGLES = true;
return;
while (true)
if (glGetError() == GL_NO_ERROR)
break;

View file

@ -38,6 +38,7 @@ public:
return minorVersion;
}
bool isGLES() const {
return true;
return _isGLES;
}
std::string getDriverName() override {
@ -50,6 +51,7 @@ public:
bool hasPerPixel() override
{
return true;
return !isGLES()
&& (getMajorVersion() > 4
|| (getMajorVersion() == 4 && getMinorVersion() >= 3));