Ver Fonte

Uses the proper string as attribute name to get its location (and now the shader-based renderer relying on JOGL 2.0 is operational)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9910 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
jul..om há 13 anos atrás
pai
commit
af3e3a74f5

+ 2 - 2
engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java

@@ -2139,8 +2139,8 @@ public class JoglRenderer implements Renderer {
             }
             if (loc == -2) {
                 stringBuf.setLength(0);
-                stringBuf.append("in").append(vb.getBufferType().name()).append('\0');
-                updateNameBuffer();
+                // JOGL 2.0 doesn't need a null terminated string
+                stringBuf.append("in").append(vb.getBufferType().name());
                 loc = gl.getGL2().glGetAttribLocation(programId, stringBuf.toString());
 
                 // not really the name of it in the shader (inPosition\0) but