Disable debug callbacks on Intel HD 4000.
This commit is contained in:
@@ -513,6 +513,14 @@ namespace OpenRA.Platforms.Default
|
|||||||
Features ^= GLFeatures.DebugMessagesCallback;
|
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
|
// Setup the debug message callback handler
|
||||||
if (Features.HasFlag(GLFeatures.DebugMessagesCallback))
|
if (Features.HasFlag(GLFeatures.DebugMessagesCallback))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user