- removed the SSBO block for desktop OS’s when gl_pipeline_depth is enabled

This commit is contained in:
Christoph Oelckers 2021-09-14 00:13:08 +02:00
commit b0382599f6
5 changed files with 19 additions and 3 deletions

View file

@ -382,7 +382,7 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char *
vp_comb = "#version 430 core\n#define SHADER_STORAGE_LIGHTS\n";
}
if ((gl.flags & RFL_SHADER_STORAGE_BUFFER) && screen->mPipelineType == 0)
if ((gl.flags & RFL_SHADER_STORAGE_BUFFER) && screen->allowSSBO())
{
vp_comb << "#define SUPPORTS_SHADOWMAPS\n";
}