From 2bc55451713875a9dfcfae044016c752fc7f2e1b Mon Sep 17 00:00:00 2001 From: shadowislord Date: Fri, 27 Mar 2015 21:36:43 -0400 Subject: [PATCH] OGLESShaderRenderer: remove clearTextureUnits since it doesnt do anything --- .../renderer/android/OGLESShaderRenderer.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java b/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java index cef3e9f66..462715f37 100644 --- a/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java @@ -1850,21 +1850,6 @@ public class OGLESShaderRenderer implements Renderer { TextureUtil.uploadSubTexture(pixels, convertTextureType(tex.getType()), 0, x, y); } - public void clearTextureUnits() { - IDList textureList = context.textureIndexList; - Image[] textures = context.boundTextures; - for (int i = 0; i < textureList.oldLen; i++) { - int idx = textureList.oldList[i]; -// if (context.boundTextureUnit != idx){ -// glActiveTexture(GL_TEXTURE0 + idx); -// context.boundTextureUnit = idx; -// } -// glDisable(convertTextureType(textures[idx].getType())); - textures[idx] = null; - } - context.textureIndexList.copyNewToOld(); - } - public void deleteImage(Image image) { int texId = image.getId(); if (texId != -1) { @@ -2339,7 +2324,6 @@ public class OGLESShaderRenderer implements Renderer { RendererUtil.checkGLError(); } clearVertexAttribs(); - clearTextureUnits(); } private void renderMeshDefault(Mesh mesh, int lod, int count) { @@ -2378,7 +2362,6 @@ public class OGLESShaderRenderer implements Renderer { RendererUtil.checkGLError(); } clearVertexAttribs(); - clearTextureUnits(); } public void renderMesh(Mesh mesh, int lod, int count, VertexBuffer[] instanceData) {