mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-17 17:41:23 +00:00
- fixed: I was using the wrong check to determine which renderer was in use. Ooops. It now checks for the actual (active) renderer rather than the state of vid_glswfb
This commit is contained in:
parent
1e4d7534c4
commit
8454e09694
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ static TArray<FString> m_Extensions;
|
||||||
RenderContext gl;
|
RenderContext gl;
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, gl_legacy_mode)
|
EXTERN_CVAR(Bool, gl_legacy_mode)
|
||||||
EXTERN_CVAR(Bool, vid_glswfb)
|
extern int currentrenderer;
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
|
@ -209,7 +209,7 @@ void gl_LoadExtensions()
|
||||||
// The minimum requirement for the modern render path is GL 3.3.
|
// The minimum requirement for the modern render path is GL 3.3.
|
||||||
// Although some GL 3.1 or 3.2 solutions may theoretically work they are usually too broken or too slow.
|
// Although some GL 3.1 or 3.2 solutions may theoretically work they are usually too broken or too slow.
|
||||||
// unless, of course, we're simply using this as a software backend...
|
// unless, of course, we're simply using this as a software backend...
|
||||||
if (gl_version < 3.3f && (!vid_glswfb || gl_version < 3.0f))
|
if ((gl_version < 3.3f && (currentrenderer==1)) || gl_version < 3.0f)
|
||||||
{
|
{
|
||||||
gl.legacyMode = true;
|
gl.legacyMode = true;
|
||||||
gl.lightmethod = LM_LEGACY;
|
gl.lightmethod = LM_LEGACY;
|
||||||
|
|
Loading…
Reference in a new issue