OpenGL2: Fix checking r_shadowCascadeZFar pointer instead of value

This commit is contained in:
Zack Middleton 2017-06-29 21:34:39 -05:00
parent 4b5067cce2
commit 09a23e0417

View file

@ -491,7 +491,7 @@ void RE_RenderScene( const refdef_t *fd ) {
// playing with even more shadows
if(glRefConfig.framebufferObject && r_sunlightMode->integer && !( fd->rdflags & RDF_NOWORLDMODEL ) && (r_forceSun->integer || tr.sunShadows))
{
if (r_shadowCascadeZFar != 0)
if (r_shadowCascadeZFar->integer != 0)
{
R_RenderSunShadowMaps(fd, 0);
R_RenderSunShadowMaps(fd, 1);