I get the following error when running my game under Windows 7 RC 7100. It works fine in XP. (Running from NetBeans 6.7 or 6.5, both give me the same)
java.lang.IllegalStateException: Function is not supported
at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:64)
at org.lwjgl.opengl.GL11.glGetError(GL11.java:1360)
at org.lwjgl.opengl.Util.checkGLError(Util.java:52)
at org.lwjgl.opengl.GL11.glGetString(GL11.java:1795)
at org.lwjgl.opengl.GLContext.getSupportedExtensions(GLContext.java:185)
at org.lwjgl.opengl.ContextCapabilities.initAllStubs(ContextCapabilities.java:3438)
at org.lwjgl.opengl.ContextCapabilities.<init>(ContextCapabilities.java:3684)
at org.lwjgl.opengl.GLContext.useContext(GLContext.java:328)
at org.lwjgl.opengl.Context.makeCurrent(Context.java:183)
at org.lwjgl.opengl.Display.makeCurrent(Display.java:713)
at org.lwjgl.opengl.Display.makeCurrentAndSetSwapInterval(Display.java:865)
at org.lwjgl.opengl.Display.create(Display.java:843)
at org.lwjgl.opengl.Display.create(Display.java:767)
at org.lwjgl.opengl.Display.create(Display.java:748)
at ecl.client.Main.initializeGears(Main.java:251)
at ecl.client.Main.run(Main.java:123)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-0" java.lang.IllegalStateException: Function is not supported
at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:64)
at org.lwjgl.opengl.GL11.glEnable(GL11.java:1031)
at ecl.client.Main.initializeGears(Main.java:257)
at ecl.client.Main.run(Main.java:123)
at java.lang.Thread.run(Thread.java:619)
This is ecl.client.Main.run:
public void initializeGears(){
try {
if(_oCanvas != null){
Display.setParent(_oCanvas);
}else{
Display.setTitle(WINDOW_TITLE);
setDisplayMode(SCREEN_WIDTH, SCREEN_HEIGHT, _bFullscreen);
}
Display.create(); // ERROR HERE!!!! (Windows 7 only)
} catch (Exception ex) {
// _oClientThread.send(Messaging.publicChat(ex.getMessage()));
ex.printStackTrace();
}
Mouse.setGrabbed(false);
GL11.glEnable(GL11.GL_TEXTURE_2D); // Enable Texture Mapping
GL11_EnterOrtho();
// GLU.gluOrtho2D(0, SCREEN_WIDTH, SCREEN_HEIGHT, 0);
GL11.glDepthMask(false);
// GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
// GL11.glPushAttrib(GL11.GL_DEPTH_BUFFER_BIT | GL11.GL_ENABLE_BIT);
System.err.println("GL_VENDOR: " + GL11.glGetString(GL11.GL_VENDOR));
System.err.println("GL_RENDERER: " + GL11.glGetString(GL11.GL_RENDERER));
System.err.println("GL_VERSION: " + GL11.glGetString(GL11.GL_VERSION));
System.err.println("glLoadTransposeMatrixfARB() supported: " + GLContext.getCapabilities().GL_ARB_transpose_matrix);
System.err.println("OS: " + System.getProperty("os.name"));
System.err.println("Available Processors:" + java.lang.Runtime.getRuntime().availableProcessors());
System.err.println("Total Memory: " + ecl.util.Util.getSizeInPositiveBiggestUnit( Runtime.getRuntime().totalMemory()));
}
Maybe it's an issue with Windows 7? It used to work in Windows 7 RC 7100 - but I use XP mostly, so I did some months of development before I got to try it again in 7. And now it' doesn't wanna run =/
EDIT
Just noticed I'm using lwjgl 2.2 now. Last time it worked fine in 7, it was using 2.1! Can it be that?