* Changed depth function back to GL_LEQUAL

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7293 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent edd5aaaeb5
commit 4ff31a6fab
  1. 2
      engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java

@ -471,7 +471,7 @@ public class LwjglRenderer implements Renderer {
if (state.isDepthTest() && !context.depthTestEnabled) { if (state.isDepthTest() && !context.depthTestEnabled) {
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS); glDepthFunc(GL_LEQUAL);
context.depthTestEnabled = true; context.depthTestEnabled = true;
} else if (!state.isDepthTest() && context.depthTestEnabled) { } else if (!state.isDepthTest() && context.depthTestEnabled) {
glDisable(GL_DEPTH_TEST); glDisable(GL_DEPTH_TEST);

Loading…
Cancel
Save