From 93d968a12bc193d654bbf9d6fd8ca0db85375e5e Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 19 Jun 2011 12:00:16 +0000 Subject: [PATCH] - fix compile error in renderer (vb.getBufferType().name()) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7669 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/renderer/android/OGLESShaderRenderer.java | 4 ++-- .../src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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