From 473a45fbca1bf68ff5cfe4ce9dbb32bea145fd55 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Thu, 20 Nov 2025 10:04:20 -0600 Subject: [PATCH] circular volatile buffer safety add padding to the circular volative buffer overlap test to avoid loop artifacting --- Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h b/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h index cd961a19e..1872871f7 100644 --- a/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h +++ b/Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h @@ -29,7 +29,7 @@ public: bool checkOverlap(U32 start, U32 end) { - if( mStart < end && start < mEnd ) + if ((mStart < end - 1) && (start < mEnd - 1)) return true; return false;