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.
This commit is contained in:
lightningterror 2020-06-06 07:23:13 +02:00
parent 5db24d4e4a
commit e64ae9b6bf
1 changed files with 3 additions and 7 deletions

View File

@ -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;