mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
fix volatile buffer
change debugdraw to use volatile fix volatile buffer wraparound
This commit is contained in:
parent
d45c3794a5
commit
267986a289
2 changed files with 8 additions and 8 deletions
|
|
@ -201,6 +201,8 @@ public:
|
|||
if (mBufferFreePos < mBufferSize)
|
||||
mUsedRanges.push_back(UsedRange(mBufferFreePos, mBufferSize - 1));
|
||||
|
||||
init();
|
||||
|
||||
// Reset free pos
|
||||
mBufferFreePos = 0;
|
||||
|
||||
|
|
@ -224,8 +226,6 @@ public:
|
|||
if (GFXGL->mCapabilities.bufferStorage)
|
||||
{
|
||||
outPtr = static_cast<U8*>(mBufferPtr) + mBufferFreePos;
|
||||
_getBufferData.mOffset = outOffset;
|
||||
_getBufferData.mSize = size;
|
||||
}
|
||||
else if (GFXGL->glUseMap())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue