bug from VBO changes. when more indices are drawn then the last frame, the debug build would crash
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@1271 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
31bea011b9
commit
9fb318d29a
@ -527,7 +527,7 @@ namespace scene
|
||||
}
|
||||
}
|
||||
|
||||
RenderBuffer.Indices.set_used(IndicesToRender);
|
||||
|
||||
|
||||
RenderBuffer.setDirty(EBT_INDEX);
|
||||
|
||||
@ -554,9 +554,15 @@ namespace scene
|
||||
driver->setTransform (video::ETS_WORLD, identity);
|
||||
|
||||
driver->setMaterial(Mesh.getMeshBuffer(0)->getMaterial());
|
||||
|
||||
|
||||
RenderBuffer.Indices.set_used(IndicesToRender);
|
||||
|
||||
// For use with geomorphing
|
||||
driver->drawMeshBuffer(&RenderBuffer);
|
||||
driver->drawMeshBuffer(&RenderBuffer);
|
||||
|
||||
RenderBuffer.Indices.set_used( RenderBuffer.Indices.allocated_size() );
|
||||
|
||||
|
||||
// for debug purposes only:
|
||||
if (DebugDataVisible)
|
||||
|
Loading…
x
Reference in New Issue
Block a user