gsdx ogl: disable sparse in extenstion detection

* Allow to keep automatic as default value in the option
* You need to force enable sparse in the option to enable sparse
This commit is contained in:
Gregory Hainaut 2019-02-26 14:57:24 +01:00 committed by lightningterror
parent 535b0d4aac
commit 374374fdf1
2 changed files with 10 additions and 7 deletions

View File

@ -407,7 +407,7 @@ void GSdxApp::Init()
m_default_configuration["override_GL_ARB_multi_bind"] = "-1";
m_default_configuration["override_GL_ARB_shader_image_load_store"] = "-1";
m_default_configuration["override_GL_ARB_shader_storage_buffer_object"] = "-1";
m_default_configuration["override_GL_ARB_sparse_texture"] = "0";
m_default_configuration["override_GL_ARB_sparse_texture"] = "-1";
m_default_configuration["override_GL_ARB_sparse_texture2"] = "-1";
m_default_configuration["override_GL_ARB_texture_view"] = "-1";
m_default_configuration["override_GL_ARB_vertex_attrib_binding"] = "-1";

View File

@ -259,13 +259,16 @@ namespace GLLoader {
{
int max_ext = 0;
glGetIntegerv(GL_NUM_EXTENSIONS, &max_ext);
for (GLint i = 0; i < max_ext; i++) {
std::string ext{(const char*)glGetStringi(GL_EXTENSIONS, i)};
GLExtension::Set(ext);
//fprintf(stderr, "DEBUG ext: %s\n", ext.c_str());
}
if (glGetStringi && max_ext) {
for (GLint i = 0; i < max_ext; i++) {
std::string ext{(const char*)glGetStringi(GL_EXTENSIONS, i)};
GLExtension::Set(ext);
//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