fixed JmeBatchRendererBackend that was not properly reseting the forcedRenderState of the renderer causing depth test and depth write to be disable once th first frame was rendered

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10630 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent 4d1e3dc9b5
commit e2614b51c7
  1. 1
      engine/src/niftygui/com/jme3/niftygui/JmeBatchRenderBackend.java

@ -452,6 +452,7 @@ public class JmeBatchRenderBackend implements BatchRenderBackend {
material.setTexture("ColorMap", textureAtlas); material.setTexture("ColorMap", textureAtlas);
material.render(meshGeometry, renderManager); material.render(meshGeometry, renderManager);
renderManager.setForcedRenderState(null);
} }
private RenderState.BlendMode convertBlend(final BlendMode blendMode) { private RenderState.BlendMode convertBlend(final BlendMode blendMode) {

Loading…
Cancel
Save