Basically I was using lwjgl with Netbeans on windows XP and I made a new partition for windows 7. In windows 7 I loaded up the same project from the XP partition in Netbeans and ran it. It executed fine but the shaders wouldn't create. To be explicitly clear they're referencing the same project, not a copy of it, just one is done under win7 and from a different drive.
In XP it doesn't enter this if statement:
if (errorCheckValue != GL11.GL_NO_ERROR) {
System.out.println("ERROR - Could not create the shaders:" + GLU.gluErrorString(errorCheckValue));
System.exit(-1);
}
The output in win7 is:
ERROR - Could not create the shaders:Invalid operation
I verified that it was accessing the correct file. The contents of the file didn't matter (even an empty file or a gibberish file gives the same output).
I switched back over to running xp and ran the program again, it worked just like before.
This line:
out.put("Starting OpenGL version: " + GL11.glGetString(GL11.GL_VERSION)+"\n\tlwjgl vrsn:"+Sys.getVersion());
In xp gives:
Starting OpenGL version: 3.2.11927 Core Profile Forward-Compatible Context
lwjgl vrsn:2.9.1
In win7 gives:
Starting OpenGL version: 3.2.13084 Core Profile Forward-Compatible Context 14.301.1001.0
lwjgl vrsn:2.9.1
I doubt these slight differences account for the problems I'm having. I barely got it working in xp the first time around and I'm pretty much lost on how to proceed from here short of randomly changing things that appear to be related or reverting back to xp.
I'm interested in any feedback on more in depth debugging the shader or any other suggestions on what to try before I rewind. Thanks.