Removed the call to glHint GL10.GL_PERSPECTIVE_CORRECTION_HINT as it generates an INVALID_ENUM error.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9170 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 60479107bb
commit afc2710626
  1. 5
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -107,7 +107,7 @@ public class OGLESShaderRenderer implements Renderer {
private boolean powerOf2 = false;
private boolean verboseLogging = false;
private boolean useVBO = false;
private boolean checkErrors = false;
private boolean checkErrors = true;
public OGLESShaderRenderer() {
}
@ -374,7 +374,8 @@ public class OGLESShaderRenderer implements Renderer {
logger.info("GLES20.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST)");
}
GLES20.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
//It seems that GL10.GL_PERSPECTIVE_CORRECTION_HINT gives invalid_enum error on android.
// GLES20.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
// checkGLError();

Loading…
Cancel
Save