Skip to content

Instantly share code, notes, and snippets.

@michicc
Created March 19, 2021 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michicc/7792c9eaf8174dcd24067031d6c9f84f to your computer and use it in GitHub Desktop.
Save michicc/7792c9eaf8174dcd24067031d6c9f84f to your computer and use it in GitHub Desktop.
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