Nifty GUI: call mesh.updateCounts() after updating batch content to fix StatsView displaying wrong values

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10886 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
voi..om 11 years ago
parent ab89b55a53
commit ebc9b2f7b5
  1. 1
      engine/src/niftygui/com/jme3/niftygui/JmeBatchRenderBackend.java

@ -451,6 +451,7 @@ public class JmeBatchRenderBackend implements BatchRenderBackend {
renderManager.setForcedRenderState(renderState);
material.setTexture("ColorMap", textureAtlas);
mesh.updateCounts();
material.render(meshGeometry, renderManager);
renderManager.setForcedRenderState(null);
}

Loading…
Cancel
Save