MacOS fixes

This commit is contained in:
Raven Szewczyk committed 2023-02-11 21:35:35 +00:00
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");