From 9f180b29b9e27a4d48e4ff791428a8891bd2c96e Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 8 Apr 2017 00:19:39 +0200 Subject: [PATCH] - Remove GL_MAJOR_VERSION check for OpenGL ES as apparently not even this can be done right by driver writers --- src/gl/system/gl_swframebuffer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gl/system/gl_swframebuffer.cpp b/src/gl/system/gl_swframebuffer.cpp index 15cabc68e..29c38a4a6 100644 --- a/src/gl/system/gl_swframebuffer.cpp +++ b/src/gl/system/gl_swframebuffer.cpp @@ -203,12 +203,7 @@ OpenGLSWFrameBuffer::OpenGLSWFrameBuffer(void *hMonitor, int width, int height, const char *glversion = (const char*)glGetString(GL_VERSION); bool isGLES = (glversion && strlen(glversion) > 10 && memcmp(glversion, "OpenGL ES ", 10) == 0); - if (isGLES && ogl_IsVersionGEQ(2, 0) == 0) - { - Printf("OpenGL acceleration requires at least OpenGL ES 2.0. No Acceleration will be used.\n"); - return; - } - else if (!isGLES && ogl_IsVersionGEQ(3, 0) == 0) + if (!isGLES && ogl_IsVersionGEQ(3, 0) == 0) { Printf("OpenGL acceleration requires at least OpenGL 3.0. No Acceleration will be used.\n"); return;