Explorar o código

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

Nehon %!s(int64=11) %!d(string=hai) anos
pai
achega
ca6d3f4e73

+ 2 - 2
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) {