mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-17 17:41:23 +00:00
- add 'gl_riskymodernpath' for computers that worked before the GL >= 3.3 modern path enforcement, since some did, but they seemed to be the exception rather than the rule.
This commit is contained in:
parent
549a9d3cf0
commit
6aa724a9b4
1 changed files with 5 additions and 1 deletions
|
@ -44,6 +44,7 @@ RenderContext gl;
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, gl_legacy_mode)
|
EXTERN_CVAR(Bool, gl_legacy_mode)
|
||||||
extern int currentrenderer;
|
extern int currentrenderer;
|
||||||
|
CVAR(Bool, gl_riskymodernpath, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
|
@ -209,7 +210,10 @@ 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 && (currentrenderer==1)) || gl_version < 3.0f)
|
float minmodernpath = 3.3f;
|
||||||
|
if (gl_riskymodernpath)
|
||||||
|
minmodernpath = 3.1f;
|
||||||
|
if ((gl_version < minmodernpath && (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