summaryrefslogtreecommitdiffstats
path: root/src/render/SpecialFX.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-09 18:22:02 +0100
committeraap <aap@papnet.eu>2021-01-09 18:22:02 +0100
commit4bb6740bf42c951413e2ddf91ba1a012ce1356ab (patch)
treeba49c28b62b4962194c027c6b3446f437885ac11 /src/render/SpecialFX.cpp
parentboat fix (diff)
downloadre3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.tar
re3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.tar.gz
re3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.tar.bz2
re3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.tar.lz
re3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.tar.xz
re3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.tar.zst
re3-4bb6740bf42c951413e2ddf91ba1a012ce1356ab.zip
Diffstat (limited to 'src/render/SpecialFX.cpp')
-rw-r--r--src/render/SpecialFX.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp
index 4ad06543..e3d2ffa6 100644
--- a/src/render/SpecialFX.cpp
+++ b/src/render/SpecialFX.cpp
@@ -725,6 +725,9 @@ CBrightLights::Render(void)
RwRenderStateSet(rwRENDERSTATEDESTBLEND, (void*)rwBLENDINVSRCALPHA);
RwRenderStateSet(rwRENDERSTATETEXTURERASTER, nil);
+ TempBufferVerticesStored = 0;
+ TempBufferIndicesStored = 0;
+
for(i = 0; i < NumBrightLights; i++){
if(TempBufferIndicesStored > TEMPBUFFERINDEXSIZE-40 || TempBufferVerticesStored > TEMPBUFFERVERTSIZE-40)
RenderOutGeometryBuffer();