mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +00:00
Merge pull request #424 from tdev/lock-checking
Added checks for valid pointers after locking
This commit is contained in:
commit
77bd934167
13 changed files with 39 additions and 10 deletions
|
|
@ -1505,7 +1505,8 @@ void WorldEditor::renderSplinePath(SimPath::Path *path)
|
|||
|
||||
GFXVertexBufferHandle<GFXVertexPC> vb;
|
||||
vb.set(GFX, 3*batchSize, GFXBufferTypeVolatile);
|
||||
vb.lock();
|
||||
void *lockPtr = vb.lock();
|
||||
if(!lockPtr) return;
|
||||
|
||||
U32 vIdx=0;
|
||||
|
||||
|
|
@ -1542,7 +1543,8 @@ void WorldEditor::renderSplinePath(SimPath::Path *path)
|
|||
|
||||
// Reset for next pass...
|
||||
vIdx = 0;
|
||||
vb.lock();
|
||||
void *lockPtr = vb.lock();
|
||||
if(!lockPtr) return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue