浏览代码

circular volatile buffer safety
add padding to the circular volative buffer overlap test to avoid loop artifacting

AzaezelX 1 月之前
父节点
当前提交
473a45fbca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h

+ 1 - 1
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;