- 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
This commit is contained in:
parent
cacef7564a
commit
02841d4295
@ -160,20 +160,21 @@ public class IGLESShaderRenderer implements Renderer {
|
|||||||
context.wireframe = false;
|
context.wireframe = false;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if (state.isDepthTest() && !context.depthTestEnabled) {
|
|
||||||
JmeIosGLES.glEnable(JmeIosGLES.GL_DEPTH_TEST);
|
// if (state.isDepthTest() && !context.depthTestEnabled) {
|
||||||
JmeIosGLES.glDepthFunc(convertTestFunction(context.depthFunc));
|
// JmeIosGLES.glEnable(JmeIosGLES.GL_DEPTH_TEST);
|
||||||
JmeIosGLES.checkGLError();
|
// JmeIosGLES.glDepthFunc(convertTestFunction(context.depthFunc));
|
||||||
context.depthTestEnabled = true;
|
// JmeIosGLES.checkGLError();
|
||||||
} else if (!state.isDepthTest() && context.depthTestEnabled) {
|
// context.depthTestEnabled = true;
|
||||||
JmeIosGLES.glDisable(JmeIosGLES.GL_DEPTH_TEST);
|
// } else if (!state.isDepthTest() && context.depthTestEnabled) {
|
||||||
JmeIosGLES.checkGLError();
|
// JmeIosGLES.glDisable(JmeIosGLES.GL_DEPTH_TEST);
|
||||||
context.depthTestEnabled = false;
|
// JmeIosGLES.checkGLError();
|
||||||
}
|
// context.depthTestEnabled = false;
|
||||||
if (state.getDepthFunc() != context.depthFunc) {
|
// }
|
||||||
JmeIosGLES.glDepthFunc(convertTestFunction(state.getDepthFunc()));
|
// if (state.getDepthFunc() != context.depthFunc) {
|
||||||
context.depthFunc = state.getDepthFunc();
|
// JmeIosGLES.glDepthFunc(convertTestFunction(state.getDepthFunc()));
|
||||||
}
|
// context.depthFunc = state.getDepthFunc();
|
||||||
|
// }
|
||||||
|
|
||||||
if (state.isDepthWrite() && !context.depthWriteEnabled) {
|
if (state.isDepthWrite() && !context.depthWriteEnabled) {
|
||||||
JmeIosGLES.glDepthMask(true);
|
JmeIosGLES.glDepthMask(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user