mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
535b0d4aac
commit
374374fdf1
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue