Commented out a line in the OglesShaderRenderer (android) that was occasionally causing a crash on android.

This line was already commented in other renderers, and I have to admit I have no clue of what it does except crashing the app
experimental
Nehon 11 years ago
parent ed443bcfa2
commit ca6d3f4e73
  1. 4
      jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -1799,13 +1799,13 @@ public class OGLESShaderRenderer implements Renderer {
Image[] textures = context.boundTextures;
int type = convertTextureType(tex.getType());
if (!context.textureIndexList.moveToNew(unit)) {
// if (!context.textureIndexList.moveToNew(unit)) {
// if (context.boundTextureUnit != unit){
// glActiveTexture(GL_TEXTURE0 + unit);
// context.boundTextureUnit = unit;
// }
// glEnable(type);
}
// }
if (textures[unit] != image) {
if (context.boundTextureUnit != unit) {

Loading…
Cancel
Save