diff --git a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java index 0c39ce216..45bde8877 100644 --- a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java @@ -2347,7 +2347,7 @@ public class OGLESShaderRenderer implements Renderer { int programId = context.boundShaderProgram; if (programId > 0) { - Attribute attrib = boundShader.getAttribute(vb.getBufferType()); + Attribute attrib = boundShader.getAttribute(vb.getBufferType().name()); int loc = attrib.getLocation(); if (loc == -1) { @@ -2874,7 +2874,7 @@ public class OGLESShaderRenderer implements Renderer { if (programId > 0) { VertexBuffer[] attribs = context.boundAttribs; - Attribute attrib = boundShader.getAttribute(vb.getBufferType()); + Attribute attrib = boundShader.getAttribute(vb.getBufferType().name()); int loc = attrib.getLocation(); if (loc == -1) { //throw new IllegalArgumentException("Location is invalid for attrib: [" + vb.getBufferType().name() + "]"); diff --git a/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java b/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java index e7870e008..3e839838a 100644 --- a/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java +++ b/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java @@ -2068,7 +2068,7 @@ public class LwjglRenderer implements Renderer { int programId = context.boundShaderProgram; if (programId > 0) { - Attribute attrib = boundShader.getAttribute(vb.getBufferType()); + Attribute attrib = boundShader.getAttribute(vb.getBufferType().name()); int loc = attrib.getLocation(); if (loc == -1) { return; // not defined