overlaytopleft/games-fps/gzdoom/files/0031-GLES-Fix-first-wipe.patch

26 lines
792 B
Diff

From 6e4521b749d497be67617095786f283afdb3d35c Mon Sep 17 00:00:00 2001
From: Emile Belanger <emile.belanger@gmail.com>
Date: Sun, 29 Jan 2023 15:56:14 +0000
Subject: [PATCH 31/51] GLES: Fix first wipe
---
src/common/rendering/hwrenderer/data/hw_viewpointbuffer.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/common/rendering/hwrenderer/data/hw_viewpointbuffer.cpp b/src/common/rendering/hwrenderer/data/hw_viewpointbuffer.cpp
index f60cda5e1..5a94ba0bd 100644
--- a/src/common/rendering/hwrenderer/data/hw_viewpointbuffer.cpp
+++ b/src/common/rendering/hwrenderer/data/hw_viewpointbuffer.cpp
@@ -124,6 +124,8 @@ void HWViewpointBuffer::Clear()
if (needNewPipeline)
{
+ mLastMappedIndex = UINT_MAX;
+
mPipelinePos++;
mPipelinePos %= mPipelineNbr;
}
--
2.39.3