mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 23:35:45 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ public:
|
||||||
|
|
||||||
bool checkOverlap(U32 start, U32 end)
|
bool checkOverlap(U32 start, U32 end)
|
||||||
{
|
{
|
||||||
if( mStart < end && start < mEnd )
|
if ((mStart < end - 1) && (start < mEnd - 1))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue