1
0
Fork 0

Update Display.java

This commit is contained in:
mrdev023 2016-08-28 21:28:23 +02:00 committed by GitHub
parent 2dbf9a61fa
commit d9a6c05240

View file

@ -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(){