mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-28 00:24:44 +00:00
circular volatile buffer safety
add padding to the circular volative buffer overlap test to avoid loop artifacting
This commit is contained in:
parent
9ec752b646
commit
473a45fbca
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue