瀏覽代碼

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 11 年之前
父節點
當前提交
ca6d3f4e73
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java

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