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
This commit is contained in:
@@ -2139,8 +2139,8 @@ public class JoglRenderer implements Renderer {
|
|||||||
}
|
}
|
||||||
if (loc == -2) {
|
if (loc == -2) {
|
||||||
stringBuf.setLength(0);
|
stringBuf.setLength(0);
|
||||||
stringBuf.append("in").append(vb.getBufferType().name()).append('\0');
|
// JOGL 2.0 doesn't need a null terminated string
|
||||||
updateNameBuffer();
|
stringBuf.append("in").append(vb.getBufferType().name());
|
||||||
loc = gl.getGL2().glGetAttribLocation(programId, stringBuf.toString());
|
loc = gl.getGL2().glGetAttribLocation(programId, stringBuf.toString());
|
||||||
|
|
||||||
// not really the name of it in the shader (inPosition\0) but
|
// not really the name of it in the shader (inPosition\0) but
|
||||||
|
|||||||
Reference in New Issue
Block a user