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:
parent
36f95cdf09
commit
af3e3a74f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user