From 8386b427eae786ad8d273e5a5e31a4011ea1e347 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Tue, 21 Apr 2015 23:34:26 +0200 Subject: [PATCH] gsdx ogl: restore GL_MAP_COHERENT_BIT for texture upload I hope to fix the texture upload corruption I hope that impact on perf will remain small --- plugins/GSdx/GSTextureOGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSTextureOGL.cpp b/plugins/GSdx/GSTextureOGL.cpp index 5dcb7bc23a..0501753c6e 100644 --- a/plugins/GSdx/GSTextureOGL.cpp +++ b/plugins/GSdx/GSTextureOGL.cpp @@ -44,7 +44,7 @@ namespace PboPool { // XXX: actually does I really need coherent and barrier??? // As far as I understand glTexSubImage2D is a client-server transfer so no need to make // the value visible to the server - const GLbitfield map_flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT /*| GL_MAP_COHERENT_BIT*/; + const GLbitfield map_flags = GL_MAP_WRITE_BIT | GL_MAP_PERSISTENT_BIT | GL_MAP_COHERENT_BIT; // FIXME do I need GL_DYNAMIC_STORAGE_BIT to allow write? const GLbitfield create_flags = map_flags /*| GL_DYNAMIC_STORAGE_BIT*/ | GL_CLIENT_STORAGE_BIT; #endif