- fix compile error in renderer (vb.getBufferType().name())
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7669 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
c727d3e006
commit
93d968a12b
@ -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…
x
Reference in New Issue
Block a user