Skip to content

Commit

Permalink
Moved updateRawMouseMode to be called after displayCreated has been s…
Browse files Browse the repository at this point in the history
…et to true. (GTNewHorizons#158)
  • Loading branch information
Thorium0 authored and TwilightFlower committed Jun 25, 2024
1 parent 5590737 commit b2b0a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/lwjglx/opengl/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ public static void create(PixelFormat pixelFormat, ContextAttribs attribs, long
glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE); // request a non-hidpi framebuffer on Retina displays
// on MacOS

lwjgl3ify$updateRawMouseMode(Config.INPUT_RAW_MOUSE);

Window.handle = glfwCreateWindow(mode.getWidth(), mode.getHeight(), windowTitle, NULL, sharedWindow);
if (Window.handle == 0L) {
throw new IllegalStateException("Failed to create Display window");
Expand Down Expand Up @@ -462,6 +460,8 @@ public void invoke(long window, int width, int height) {

displayCreated = true;

lwjgl3ify$updateRawMouseMode(Config.INPUT_RAW_MOUSE);

if (startFullscreen) {
setFullscreen(true);
}
Expand Down

0 comments on commit b2b0a15

Please sign in to comment.