Thanks for the replies, and sorry about the strange pixel format, I was just trying out all sorts of formats. Using
I have changed the code to use PixelFormat(8, 24, 8 )
but I still get the same error.
@Cornix, In the normal code of our game we do this, but I wanted to create the most simple demo that recreated the problem. But I'll change the demo to get the available modes first and will post what happens.
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.PixelFormat;
public class OpenGLTest {
public static void main(String[] args) {
System.out.println("Creating dipslay");
try {
Display.setDisplayMode(new DisplayMode(1280, 720));
Display.setTitle("A fresh display!");
Display.create(new PixelFormat(8, 24, 8));
} catch (LWJGLException e) {
e.printStackTrace();
Display.destroy();
System.exit(1);
}
while(!Display.isCloseRequested()) {
Display.update();
Display.sync(60);
}
Display.destroy();
System.exit(0);
}
}