Fix profiler issue with RenderGlobal patch. Closes #414

This commit is contained in:
LexManos 2013-02-15 04:56:55 -08:00
parent 183b3e6316
commit 307dd48229
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,7 @@
}
else
{
- this.theWorld.theProfiler.startSection("prepare");
this.theWorld.theProfiler.startSection("prepare");
- TileEntityRenderer.instance.cacheActiveRenderInfo(this.theWorld, this.renderEngine, this.mc.fontRenderer, this.mc.renderViewEntity, par3);
- RenderManager.instance.cacheActiveRenderInfo(this.theWorld, this.renderEngine, this.mc.fontRenderer, this.mc.renderViewEntity, this.mc.gameSettings, par3);
- this.countEntitiesTotal = 0;
@ -40,7 +40,6 @@
+ List var5 = this.theWorld.getLoadedEntityList();
+ if(pass == 0)
+ {
+ this.theWorld.theProfiler.startSection("prepare");
+ TileEntityRenderer.instance.cacheActiveRenderInfo(this.theWorld, this.renderEngine, this.mc.fontRenderer, this.mc.renderViewEntity, par3);
+ RenderManager.instance.cacheActiveRenderInfo(this.theWorld, this.renderEngine, this.mc.fontRenderer, this.mc.renderViewEntity, this.mc.gameSettings, par3);
+ this.countEntitiesTotal = 0;