Add Graphics.DisableGLDebugMessageCallback setting.
This commit is contained in:
@@ -171,6 +171,9 @@ namespace OpenRA
|
|||||||
[Desc("Disable separate OpenGL render thread on Windows operating systems.")]
|
[Desc("Disable separate OpenGL render thread on Windows operating systems.")]
|
||||||
public bool DisableWindowsRenderThread = true;
|
public bool DisableWindowsRenderThread = true;
|
||||||
|
|
||||||
|
[Desc("Disable the OpenGL debug message callback feature.")]
|
||||||
|
public bool DisableGLDebugMessageCallback = false;
|
||||||
|
|
||||||
[Desc("Use OpenGL ES if both ES and regular OpenGL are available.")]
|
[Desc("Use OpenGL ES if both ES and regular OpenGL are available.")]
|
||||||
public bool PreferGLES = false;
|
public bool PreferGLES = false;
|
||||||
|
|
||||||
|
|||||||
@@ -497,6 +497,10 @@ namespace OpenRA.Platforms.Default
|
|||||||
|
|
||||||
DetectGLFeatures();
|
DetectGLFeatures();
|
||||||
|
|
||||||
|
// Allow users to force-disable the debug message callback feature to work around driver bugs
|
||||||
|
if (Features.HasFlag(GLFeatures.DebugMessagesCallback) && Game.Settings.Graphics.DisableGLDebugMessageCallback)
|
||||||
|
Features ^= GLFeatures.DebugMessagesCallback;
|
||||||
|
|
||||||
if (!Features.HasFlag(GLFeatures.Core))
|
if (!Features.HasFlag(GLFeatures.Core))
|
||||||
{
|
{
|
||||||
WriteGraphicsLog("Unsupported OpenGL version: " + glGetString(GL_VERSION));
|
WriteGraphicsLog("Unsupported OpenGL version: " + glGetString(GL_VERSION));
|
||||||
|
|||||||
Reference in New Issue
Block a user