mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-26 23:13:01 +00:00
MacOS fixes
This commit is contained in:
1 parent
fda0b1c187
commit
6cf4958efa
2 files changed
+8
No files matched your search
@@ -139,6 +139,9 @@ public class Display {
|
||||
glfwWindowHintString(GLFW_X11_CLASS_NAME, Config.X11_CLASS_NAME);
|
||||
glfwWindowHintString(GLFW_COCOA_FRAME_NAME, Config.COCOA_FRAME_NAME);
|
||||
|
||||
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE); // request a non-hidpi framebuffer on Retina displays
|
||||
// on MacOS
|
||||
|
||||
Window.handle = glfwCreateWindow(mode.getWidth(), mode.getHeight(), windowTitle, NULL, NULL);
|
||||
if (Window.handle == 0L) {
|
||||
throw new IllegalStateException("Failed to create Display window");
|
||||
|
||||
Reference in new issue
Block a user