From 02841d4295aa9368fda2a36ec109773c552bfbbb Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 13 Feb 2014 20:48:44 +0000 Subject: [PATCH] - remove depth func stuff from ios renderer (only stable branch) git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/3.0final@11047 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../renderer/ios/IGLESShaderRenderer.java | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/engine/src/ios/com/jme3/renderer/ios/IGLESShaderRenderer.java b/engine/src/ios/com/jme3/renderer/ios/IGLESShaderRenderer.java index df5e3d0fb..6bd05f9e9 100644 --- a/engine/src/ios/com/jme3/renderer/ios/IGLESShaderRenderer.java +++ b/engine/src/ios/com/jme3/renderer/ios/IGLESShaderRenderer.java @@ -160,20 +160,21 @@ public class IGLESShaderRenderer implements Renderer { context.wireframe = false; } */ - if (state.isDepthTest() && !context.depthTestEnabled) { - JmeIosGLES.glEnable(JmeIosGLES.GL_DEPTH_TEST); - JmeIosGLES.glDepthFunc(convertTestFunction(context.depthFunc)); - JmeIosGLES.checkGLError(); - context.depthTestEnabled = true; - } else if (!state.isDepthTest() && context.depthTestEnabled) { - JmeIosGLES.glDisable(JmeIosGLES.GL_DEPTH_TEST); - JmeIosGLES.checkGLError(); - context.depthTestEnabled = false; - } - if (state.getDepthFunc() != context.depthFunc) { - JmeIosGLES.glDepthFunc(convertTestFunction(state.getDepthFunc())); - context.depthFunc = state.getDepthFunc(); - } + +// if (state.isDepthTest() && !context.depthTestEnabled) { +// JmeIosGLES.glEnable(JmeIosGLES.GL_DEPTH_TEST); +// JmeIosGLES.glDepthFunc(convertTestFunction(context.depthFunc)); +// JmeIosGLES.checkGLError(); +// context.depthTestEnabled = true; +// } else if (!state.isDepthTest() && context.depthTestEnabled) { +// JmeIosGLES.glDisable(JmeIosGLES.GL_DEPTH_TEST); +// JmeIosGLES.checkGLError(); +// context.depthTestEnabled = false; +// } +// if (state.getDepthFunc() != context.depthFunc) { +// JmeIosGLES.glDepthFunc(convertTestFunction(state.getDepthFunc())); +// context.depthFunc = state.getDepthFunc(); +// } if (state.isDepthWrite() && !context.depthWriteEnabled) { JmeIosGLES.glDepthMask(true);