- On Intel, we have to disable shader storage buffers because their complier contains a bug disallowing unsized arrays.

This commit is contained in:
Christoph Oelckers 2014-12-01 09:58:23 +01:00
parent 020b02e073
commit 717c82ee4a
1 changed files with 5 additions and 1 deletions

View File

@ -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.
// 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"))
{
// 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;
}
}