mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-02 00:11:59 +00:00
- On Intel, we have to disable shader storage buffers because their complier contains a bug disallowing unsized arrays.
This commit is contained in:
parent
020b02e073
commit
717c82ee4a
1 changed files with 5 additions and 1 deletions
|
@ -138,9 +138,13 @@ void gl_LoadExtensions()
|
||||||
// work around a problem with older AMD drivers: Their implementation of shader storage buffer objects is piss-poor and does not match uniform buffers even closely.
|
// work around a problem with older AMD drivers: Their implementation of shader storage buffer objects is piss-poor and does not match uniform buffers even closely.
|
||||||
// Recent drivers, GL 4.4 don't have this problem, these can easily be recognized by also supporting the GL_ARB_buffer_storage extension.
|
// Recent drivers, GL 4.4 don't have this problem, these can easily be recognized by also supporting the GL_ARB_buffer_storage extension.
|
||||||
if (CheckExtension("GL_ARB_shader_storage_buffer_object"))
|
if (CheckExtension("GL_ARB_shader_storage_buffer_object"))
|
||||||
|
{
|
||||||
|
// Shader storage buffer objects are broken on current Intel drivers.
|
||||||
|
if (strstr(gl.vendorstring, "Intel") == NULL)
|
||||||
{
|
{
|
||||||
gl.flags |= RFL_SHADER_STORAGE_BUFFER;
|
gl.flags |= RFL_SHADER_STORAGE_BUFFER;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
gl.flags |= RFL_BUFFER_STORAGE;
|
gl.flags |= RFL_BUFFER_STORAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue