-
-
Save michicc/7792c9eaf8174dcd24067031d6c9f84f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp | |
index 266434f83..d7f51a74b 100644 | |
--- a/src/video/opengl.cpp | |
+++ b/src/video/opengl.cpp | |
@@ -577,7 +577,7 @@ const char *OpenGLBackend::Init() | |
this->persistent_mapping_supported = this->persistent_mapping_supported && (IsOpenGLVersionAtLeast(3, 2) || IsOpenGLExtensionSupported("GL_ARB_sync")); | |
#endif | |
-#ifndef GL_MAP_PERSISTENT_AMD | |
+#if !defined(GL_MAP_PERSISTENT_AMD) && !defined(_WIN32) | |
if (this->persistent_mapping_supported && (strstr(vend, "AMD") != nullptr || strstr(renderer, "Radeon") != nullptr)) { | |
/* AMD GPUs seem to perform badly with persistent buffer mapping, disable it for them. */ | |
DEBUG(driver, 3, "OpenGL: Detected AMD GPU, not using persistent buffer mapping due to performance problems"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment