After compiling a ShaderProgram
if it doesn't compile I print the log.
However, I can't find a way to tell if the error is in the fragment or vertex shader.
Here I put an error in the frag shader:
0:1(1): error: syntax error, unexpected NEW_IDENTIFIER
This error is in the vert shader:
0:1(1): error: syntax error, unexpected NEW_IDENTIFIER
is there a way to show more detail about where the error is?
Looking at the Libgdx ShaderProgram source I couldn't seem to see one: http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/glutils/ShaderProgram.html