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. 9
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -107,7 +107,7 @@ public class OGLESShaderRenderer implements Renderer {
private boolean powerOf2 = false; private boolean powerOf2 = false;
private boolean verboseLogging = false; private boolean verboseLogging = false;
private boolean useVBO = false; private boolean useVBO = false;
private boolean checkErrors = false; private boolean checkErrors = true;
public OGLESShaderRenderer() { public OGLESShaderRenderer() {
} }
@ -373,8 +373,9 @@ public class OGLESShaderRenderer implements Renderer {
if (verboseLogging) { if (verboseLogging) {
logger.info("GLES20.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST)"); 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(); // checkGLError();
@ -387,7 +388,7 @@ public class OGLESShaderRenderer implements Renderer {
useVBO = true; useVBO = true;
} }
logger.log(Level.INFO, "Caps: {0}", caps); logger.log(Level.INFO, "Caps: {0}", caps);
} }
/** /**

Loading…
Cancel
Save