Disable debug callbacks on Intel HD 4000.

This commit is contained in:
Paul Chote
2020-04-22 23:03:38 +01:00
committed by abcdefg30
parent d5aed5a88a
commit 7ebca36a9c

View File

@@ -513,6 +513,14 @@ namespace OpenRA.Platforms.Default
Features ^= GLFeatures.DebugMessagesCallback;
}
// Older Intel on Windows is broken too
if (Features.HasFlag(GLFeatures.DebugMessagesCallback) && Platform.CurrentPlatform == PlatformType.Windows)
{
var renderer = glGetString(GL_RENDERER);
if (renderer.Contains("HD Graphics") && !renderer.Contains("UHD Graphics"))
Features ^= GLFeatures.DebugMessagesCallback;
}
// Setup the debug message callback handler
if (Features.HasFlag(GLFeatures.DebugMessagesCallback))
{