mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
This commit is contained in:
commit
cecf41e4d0
1 changed files with 1 additions and 6 deletions
|
@ -203,12 +203,7 @@ OpenGLSWFrameBuffer::OpenGLSWFrameBuffer(void *hMonitor, int width, int height,
|
||||||
|
|
||||||
const char *glversion = (const char*)glGetString(GL_VERSION);
|
const char *glversion = (const char*)glGetString(GL_VERSION);
|
||||||
bool isGLES = (glversion && strlen(glversion) > 10 && memcmp(glversion, "OpenGL ES ", 10) == 0);
|
bool isGLES = (glversion && strlen(glversion) > 10 && memcmp(glversion, "OpenGL ES ", 10) == 0);
|
||||||
if (isGLES && ogl_IsVersionGEQ(2, 0) == 0)
|
if (!isGLES && ogl_IsVersionGEQ(3, 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)
|
|
||||||
{
|
{
|
||||||
Printf("OpenGL acceleration requires at least OpenGL 3.0. No Acceleration will be used.\n");
|
Printf("OpenGL acceleration requires at least OpenGL 3.0. No Acceleration will be used.\n");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue