Fixed line endings.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1377 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-06-13 14:01:17 +00:00
parent 24793abad8
commit 6fae142426
1 changed files with 16 additions and 20 deletions

View File

@ -189,8 +189,8 @@ namespace scene
// Pre-allocate memory for indices
RenderBuffer.Indices.set_used( TerrainData.PatchCount * TerrainData.PatchCount *
TerrainData.CalcPatchSize * TerrainData.CalcPatchSize * 6 );
RenderBuffer.setDirty();
RenderBuffer.setDirty();
const u32 endTime = os::Timer::getRealTime();
@ -396,9 +396,9 @@ namespace scene
}
calculateDistanceThresholds( true );
calculatePatchData();
RenderBuffer.setDirty(EBT_VERTEX);
calculatePatchData();
RenderBuffer.setDirty(EBT_VERTEX);
}
@ -526,11 +526,9 @@ namespace scene
}
}
}
}
}
RenderBuffer.setDirty(EBT_INDEX);
RenderBuffer.setDirty(EBT_INDEX);
if ( DynamicSelectorUpdate && TriangleSelector )
{
@ -554,16 +552,14 @@ namespace scene
core::matrix4 identity;
driver->setTransform (video::ETS_WORLD, identity);
driver->setMaterial(Mesh.getMeshBuffer(0)->getMaterial());
RenderBuffer.Indices.set_used(IndicesToRender);
driver->setMaterial(Mesh.getMeshBuffer(0)->getMaterial());
// For use with geomorphing
driver->drawMeshBuffer(&RenderBuffer);
RenderBuffer.Indices.set_used( RenderBuffer.Indices.allocated_size() );
RenderBuffer.Indices.set_used(IndicesToRender);
// For use with geomorphing
driver->drawMeshBuffer(&RenderBuffer);
RenderBuffer.Indices.set_used( RenderBuffer.Indices.allocated_size() );
// for debug purposes only:
if (DebugDataVisible)
@ -830,8 +826,8 @@ namespace scene
}
xval += resBySize;
x2val += res2BySize;
}
}
RenderBuffer.setDirty(EBT_VERTEX);
}