From 0a618298a24013d335432f13e5c9651fe8b58a86 Mon Sep 17 00:00:00 2001 From: RaveYard Date: Sun, 30 Oct 2022 03:15:10 +0100 Subject: [PATCH] Fix buffer flush --- src/lightmap/gpuraytracer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lightmap/gpuraytracer.cpp b/src/lightmap/gpuraytracer.cpp index 21dc2dd..11f1777 100644 --- a/src/lightmap/gpuraytracer.cpp +++ b/src/lightmap/gpuraytracer.cpp @@ -195,6 +195,8 @@ void GPURaytracer::RenderAtlasImage(size_t pageIndex) FinishCommands(); sceneLightPos = 0; sceneVertexPos = 0; + firstLight = 0; + firstVertex = 0; BeginCommands(); beginPass();