diff --git a/core/wsi/gl_context.cpp b/core/wsi/gl_context.cpp index 981964a66..0ec532b99 100644 --- a/core/wsi/gl_context.cpp +++ b/core/wsi/gl_context.cpp @@ -24,6 +24,10 @@ void GLGraphicsContext::findGLVersion() { + majorVersion= 2; + _isGLES = true; + return; + while (true) if (glGetError() == GL_NO_ERROR) break; diff --git a/core/wsi/gl_context.h b/core/wsi/gl_context.h index c63fd2502..831bdd01e 100644 --- a/core/wsi/gl_context.h +++ b/core/wsi/gl_context.h @@ -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));