Commit 89aa5dab authored by LukePH's avatar LukePH

bug from VBO changes. when more indices are drawn then the last frame, the debug build would crash

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1271 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 3258b181
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment