- re-fix leftover merge conflict

git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/3.0final@11114 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 11 years ago
parent 9edf5dc21e
commit cacd179107
  1. 14
      engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java

@ -490,23 +490,19 @@ public class LwjglRenderer implements Renderer {
context.depthTestEnabled = false;
}
if (state.isAlphaTest() && !context.alphaTestEnabled) {
if (state.isAlphaTest() && context.alphaTestFallOff == 0) {
glEnable(GL_ALPHA_TEST);
glAlphaFunc(convertTestFunction(context.alphaFunc), context.alphaTestFallOff);
context.alphaTestEnabled = true;
glAlphaFunc(GL_GREATER, state.getAlphaFallOff());
context.alphaTestFallOff = state.getAlphaFallOff();
} else if (!state.isAlphaTest() && context.alphaTestEnabled) {
glDisable(GL_ALPHA_TEST);
context.alphaTestEnabled = false;
}
if (state.getAlphaFallOff() != context.alphaTestFallOff) {
glAlphaFunc(convertTestFunction(context.alphaFunc), context.alphaTestFallOff);
glAlphaFunc(GL_GREATER, context.alphaTestFallOff);
context.alphaTestFallOff = state.getAlphaFallOff();
}
if (state.getAlphaFunc() != context.alphaFunc) {
glAlphaFunc(convertTestFunction(state.getAlphaFunc()), context.alphaTestFallOff);
context.alphaFunc = state.getAlphaFunc();
}
if (state.isDepthWrite() && !context.depthWriteEnabled) {
glDepthMask(true);
context.depthWriteEnabled = true;

Loading…
Cancel
Save