- re-add some depth func stuff from ios renderer (only stable branch)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/3.0final@11048 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
02841d4295
commit
c8e6878b64
@ -161,16 +161,16 @@ public class IGLESShaderRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// if (state.isDepthTest() && !context.depthTestEnabled) {
|
if (state.isDepthTest() && !context.depthTestEnabled) {
|
||||||
// JmeIosGLES.glEnable(JmeIosGLES.GL_DEPTH_TEST);
|
JmeIosGLES.glEnable(JmeIosGLES.GL_DEPTH_TEST);
|
||||||
// JmeIosGLES.glDepthFunc(convertTestFunction(context.depthFunc));
|
JmeIosGLES.glDepthFunc(convertTestFunction(context.depthFunc));
|
||||||
// JmeIosGLES.checkGLError();
|
JmeIosGLES.checkGLError();
|
||||||
// context.depthTestEnabled = true;
|
context.depthTestEnabled = true;
|
||||||
// } else if (!state.isDepthTest() && context.depthTestEnabled) {
|
} else if (!state.isDepthTest() && context.depthTestEnabled) {
|
||||||
// JmeIosGLES.glDisable(JmeIosGLES.GL_DEPTH_TEST);
|
JmeIosGLES.glDisable(JmeIosGLES.GL_DEPTH_TEST);
|
||||||
// JmeIosGLES.checkGLError();
|
JmeIosGLES.checkGLError();
|
||||||
// context.depthTestEnabled = false;
|
context.depthTestEnabled = false;
|
||||||
// }
|
}
|
||||||
// if (state.getDepthFunc() != context.depthFunc) {
|
// if (state.getDepthFunc() != context.depthFunc) {
|
||||||
// JmeIosGLES.glDepthFunc(convertTestFunction(state.getDepthFunc()));
|
// JmeIosGLES.glDepthFunc(convertTestFunction(state.getDepthFunc()));
|
||||||
// context.depthFunc = state.getDepthFunc();
|
// context.depthFunc = state.getDepthFunc();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user