From d9a6c05240fb80914a25e157d9915dde7583dd07 Mon Sep 17 00:00:00 2001 From: mrdev023 Date: Sun, 28 Aug 2016 21:28:23 +0200 Subject: [PATCH] Update Display.java --- src/mrdev023/opengl/Display.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mrdev023/opengl/Display.java b/src/mrdev023/opengl/Display.java index e770124..062c6e6 100644 --- a/src/mrdev023/opengl/Display.java +++ b/src/mrdev023/opengl/Display.java @@ -89,8 +89,8 @@ public class Display { } public static boolean wasResized(){ - ByteBuffer w = BufferUtils.createByteBuffer(4); - ByteBuffer h = BufferUtils.createByteBuffer(4); + IntBuffer w = BufferUtils.createIntBuffer(1); + IntBuffer h = BufferUtils.createIntBuffer(1); glfwGetWindowSize(window, w, h); int width = w.getInt(0); int height = h.getInt(0); @@ -119,7 +119,7 @@ public class Display { } public static boolean isCloseRequested(){ - return glfwWindowShouldClose(window) == GL_TRUE; + return glfwWindowShouldClose(window); } public static void createContext(){