- Fixed no rendering with shadowmaps enabled and render buffers disabled.

This commit is contained in:
drfrag666 2018-10-05 01:56:28 +02:00
parent c674c3ff72
commit dfe032dc8a

View file

@ -149,7 +149,7 @@ bool FShadowMap::ShadowTest(ADynamicLight *light, const DVector3 &pos)
bool FShadowMap::IsEnabled() const
{
return gl_light_shadowmap && !!(gl.flags & RFL_SHADER_STORAGE_BUFFER);
return gl_renderbuffers && gl_light_shadowmap && !!(gl.flags & RFL_SHADER_STORAGE_BUFFER);
}
int FShadowMap::ShadowMapIndex(ADynamicLight *light)