With the following simple app:
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;
public class LWJGLTest {
public static void main(String[] args) throws Exception {
Display.setFullscreen(false);
Display.create();
while(!Display.isCloseRequested()) {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
Display.update();
}
}
}
I produce the following fatal error: http://pastebin.com/Jbp9kNEB
This happens right away when it launches, I don't even see a window. Any advice? 2.9.0 works perfectly fine, but since I'm using a retina mac, maybe specifics of that update for 2.9.1 are breaking it?
Try setting a display mode first before creating the display. (By the way, it works for me on Windows 7 64bit)
I tried that and tried updating to 1.7.0_51 (since I was on 0_40) and neither of those fixed it.
Hello!
I 've got a workaround on those similar issues on Mac Display implementation. It's still waiting as a pull request on the Hub.
https://github.com/LWJGL/lwjgl/pull/63/files
I compiled .jars and .jnilib of the latest source snapshot, which I added my patches to on MacOSXDisplay.
Find them linked below. Please tell me if it's solved your issue, too.
regards
library (http://sourceforge.net/p/sf3jswing/git/ci/master/tree/sf3jswing-jigaxtended/lib/all/lwjgl.jar?format=raw)
native library (http://sourceforge.net/p/sf3jswing/git/ci/master/tree/sf3jswing-jigaxtended/resources/properties/Mac/all/natives/liblwjgl.jnilib?format=raw)
above patch seems to work well in my testing therefore have merged it.
Its a difficult jre bug to workaround fully, guess the proper fix is upgrade to Java 8.
@broumbroum thanks for looking into this and for the patch, really nice work.
Awesome! Thanks guys!
@kappa Nice from you to have merged it ! :)