mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- disable shader storage blocks if none get reported for vertex shaders.
This commit is contained in:
parent
c6f7d92c76
commit
3069b53804
1 changed files with 6 additions and 1 deletions
|
@ -238,7 +238,12 @@ void gl_LoadExtensions()
|
|||
// Intel's GLSL compiler is a bit broken with extensions, so unlock the feature only if not on Intel or having GL 4.3.
|
||||
if (strstr(gl.vendorstring, "Intel") == NULL || gl_version >= 4.3f)
|
||||
{
|
||||
gl.flags |= RFL_SHADER_STORAGE_BUFFER;
|
||||
// Mesa implements shader storage only for fragment shaders.
|
||||
// Just disable the feature there. The light buffer may just use a uniform buffer without any adverse effects.
|
||||
int v;
|
||||
glGetIntegerv(GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, &v);
|
||||
if (v > 0)
|
||||
gl.flags |= RFL_SHADER_STORAGE_BUFFER;
|
||||
}
|
||||
}
|
||||
gl.flags |= RFL_BUFFER_STORAGE;
|
||||
|
|
Loading…
Reference in a new issue