From e64ae9b6bf1922132a332abc64068d87e9f72488 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Sat, 6 Jun 2020 07:23:13 +0200 Subject: [PATCH] gsdx-ogl: Adjust sparse texture handle. Don't disable sparse texture by default before extension check, it will display sparse texture always not supported. Do an ini check in check_sparse_compatibility function instead. Log should properly state if sparse texture is supported now. --- plugins/GSdx/Renderers/OpenGL/GLLoader.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp b/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp index 23c48e7ef0..20fc463763 100644 --- a/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp +++ b/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp @@ -265,12 +265,6 @@ namespace GLLoader { //fprintf(stderr, "DEBUG ext: %s\n", ext.c_str()); } - // Disable sparse by default (Note AMD is completely broken). - // AMD issue tracker https://community.amd.com/thread/237558 - if (true) { - GLExtension::Set("GL_ARB_sparse_texture", false); - } - // Mandatory for both renderer { // GL4.1 @@ -370,7 +364,9 @@ namespace GLLoader { static void check_sparse_compatibility() { - if (!GLExtension::Has("GL_ARB_sparse_texture") || !GLExtension::Has("GL_EXT_direct_state_access")) { + if (!GLExtension::Has("GL_ARB_sparse_texture") || + !GLExtension::Has("GL_EXT_direct_state_access") || + theApp.GetConfigI("override_GL_ARB_sparse_texture") != 1) { found_compatible_GL_ARB_sparse_texture2 = false; found_compatible_sparse_depth = false;