- fix compile error in renderer (vb.getBufferType().name())

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7669 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent c727d3e006
commit 93d968a12b
  1. 4
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java
  2. 2
      engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java

@ -2347,7 +2347,7 @@ public class OGLESShaderRenderer implements Renderer {
int programId = context.boundShaderProgram; int programId = context.boundShaderProgram;
if (programId > 0) { if (programId > 0) {
Attribute attrib = boundShader.getAttribute(vb.getBufferType()); Attribute attrib = boundShader.getAttribute(vb.getBufferType().name());
int loc = attrib.getLocation(); int loc = attrib.getLocation();
if (loc == -1) { if (loc == -1) {
@ -2874,7 +2874,7 @@ public class OGLESShaderRenderer implements Renderer {
if (programId > 0) { if (programId > 0) {
VertexBuffer[] attribs = context.boundAttribs; VertexBuffer[] attribs = context.boundAttribs;
Attribute attrib = boundShader.getAttribute(vb.getBufferType()); Attribute attrib = boundShader.getAttribute(vb.getBufferType().name());
int loc = attrib.getLocation(); int loc = attrib.getLocation();
if (loc == -1) { if (loc == -1) {
//throw new IllegalArgumentException("Location is invalid for attrib: [" + vb.getBufferType().name() + "]"); //throw new IllegalArgumentException("Location is invalid for attrib: [" + vb.getBufferType().name() + "]");

@ -2068,7 +2068,7 @@ public class LwjglRenderer implements Renderer {
int programId = context.boundShaderProgram; int programId = context.boundShaderProgram;
if (programId > 0) { if (programId > 0) {
Attribute attrib = boundShader.getAttribute(vb.getBufferType()); Attribute attrib = boundShader.getAttribute(vb.getBufferType().name());
int loc = attrib.getLocation(); int loc = attrib.getLocation();
if (loc == -1) { if (loc == -1) {
return; // not defined return; // not defined

Loading…
Cancel
Save