Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1843 - trunk/Engine/Shadows
- Date: Fri, 9 Nov 2007 15:58:09 -0700 (MST)
Author: sparker
Date: Fri Nov 9 15:58:04 2007
New Revision: 1843
Modified:
trunk/Engine/Shadows/HardShadows.cc
Log:
Fix for empty lightsets
Modified: trunk/Engine/Shadows/HardShadows.cc
==============================================================================
--- trunk/Engine/Shadows/HardShadows.cc (original)
+++ trunk/Engine/Shadows/HardShadows.cc Fri Nov 9 15:58:04 2007
@@ -65,6 +65,10 @@
if(stateBuffer.state == StateBuffer::Finished){
return; // Shouldn't happen, but just in case...
} else if(stateBuffer.state == StateBuffer::Start){
+ if(nlights == 0){
+ stateBuffer.state = StateBuffer::Finished;
+ return;
+ }
j = 0;
} else {
// Continuing
- [Manta] r1843 - trunk/Engine/Shadows, sparker, 11/09/2007
Archive powered by MHonArc 2.6.16.