mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 07:41:22 +00:00
- remove gl_legacy_mode check in the glswfb
This commit is contained in:
parent
79fc219afd
commit
1e4d7534c4
1 changed files with 0 additions and 5 deletions
|
@ -93,7 +93,6 @@ EXTERN_CVAR(Float, Gamma)
|
||||||
EXTERN_CVAR(Bool, vid_vsync)
|
EXTERN_CVAR(Bool, vid_vsync)
|
||||||
EXTERN_CVAR(Float, transsouls)
|
EXTERN_CVAR(Float, transsouls)
|
||||||
EXTERN_CVAR(Int, vid_refreshrate)
|
EXTERN_CVAR(Int, vid_refreshrate)
|
||||||
EXTERN_CVAR(Bool, gl_legacy_mode)
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
extern cycle_t BlitCycles;
|
extern cycle_t BlitCycles;
|
||||||
|
@ -199,10 +198,6 @@ 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);
|
||||||
|
|
||||||
UCVarValue value;
|
|
||||||
value.Bool = !ogl_IsVersionGEQ(3, 0);
|
|
||||||
gl_legacy_mode.ForceSet (value, CVAR_Bool);
|
|
||||||
|
|
||||||
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");
|
Printf("OpenGL acceleration requires at least OpenGL 3.0. No Acceleration will be used.\n");
|
||||||
|
|
Loading…
Reference in a new issue