You need to sign in or sign up before continuing.
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 ...@@ -527,7 +527,7 @@ namespace scene
} }
} }
RenderBuffer.Indices.set_used(IndicesToRender);
RenderBuffer.setDirty(EBT_INDEX); RenderBuffer.setDirty(EBT_INDEX);
...@@ -555,9 +555,15 @@ namespace scene ...@@ -555,9 +555,15 @@ namespace scene
driver->setMaterial(Mesh.getMeshBuffer(0)->getMaterial()); driver->setMaterial(Mesh.getMeshBuffer(0)->getMaterial());
RenderBuffer.Indices.set_used(IndicesToRender);
// For use with geomorphing // For use with geomorphing
driver->drawMeshBuffer(&RenderBuffer); driver->drawMeshBuffer(&RenderBuffer);
RenderBuffer.Indices.set_used( RenderBuffer.Indices.allocated_size() );
// for debug purposes only: // for debug purposes only:
if (DebugDataVisible) 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