mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +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
|
@ -139,7 +139,11 @@ void gl_LoadExtensions()
|
||||||
// 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"))
|
||||||
{
|
{
|
||||||
gl.flags |= RFL_SHADER_STORAGE_BUFFER;
|
// 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_BUFFER_STORAGE;
|
gl.flags |= RFL_BUFFER_STORAGE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue