Skip to content

Commit

Permalink
add back hack for macOS
Browse files Browse the repository at this point in the history
I think their framebuffer implementation is buggy? I don't really
want to touch this since I don't have a Mac to test on

I think their GPUs are weak anyways and probably can't handle
rendering GTNH at 260 DPI or whatever Retina does
  • Loading branch information
JL2210 committed Aug 25, 2024
1 parent 95445e7 commit 2b5c73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/lwjglx/opengl/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static void create(PixelFormat pixelFormat, ContextAttribs attribs, long
glfwWindowHintString(GLFW_COCOA_FRAME_NAME, Config.COCOA_FRAME_NAME);

// request a non-hidpi framebuffer on Retina displays on MacOS
// glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE);
if (glfwGetPlatform() == GLFW_PLATFORM_COCOA) glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE);

if (Config.WINDOW_CENTERED) {
glfwWindowHint(GLFW_POSITION_X, (monitorWidth - mode.getWidth()) / 2);
Expand Down

0 comments on commit 2b5c73c

Please sign in to comment.