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 2e5b8903a..fb99d58b6 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 @@ -688,21 +688,10 @@ public class OGLESShaderRenderer implements Renderer { } protected void updateUniform(Shader shader, Uniform uniform) { - int shaderId = shader.getId(); - assert uniform.getName() != null; assert shader.getId() > 0; - if (context.boundShaderProgram != shaderId) { - GLES20.glUseProgram(shaderId); - RendererUtil.checkGLError(); - - statistics.onShaderUse(shader, true); - boundShader = shader; - context.boundShaderProgram = shaderId; - } else { - statistics.onShaderUse(shader, false); - } + bindProgram(shader); int loc = uniform.getLocation(); if (loc == -1) {