Don't create images/framebuffers that won't be used, and add checks before use.
This commit is contained in:
1 parent
d4fc617cec
commit
eea652f5c5
6 files changed
+69
-48
No files matched your search
@@ -496,7 +496,7 @@ void RE_RenderScene( const refdef_t *fd ) {
|
||||
}
|
||||
|
||||
// playing with even more shadows
|
||||
if(glRefConfig.framebufferObject && !( fd->rdflags & RDF_NOWORLDMODEL ) && (r_forceSun->integer || tr.sunShadows))
|
||||
if(glRefConfig.framebufferObject && r_sunlightMode->integer && !( fd->rdflags & RDF_NOWORLDMODEL ) && (r_forceSun->integer || tr.sunShadows))
|
||||
{
|
||||
R_RenderSunShadowMaps(fd, 0);
|
||||
R_RenderSunShadowMaps(fd, 1);
|
||||
|
||||
Reference in new issue
Block a user