From 60cdb8264be2cba0130dcacf7357a8beda78717d Mon Sep 17 00:00:00 2001 From: Ferdinand Date: Thu, 20 Feb 2020 12:17:24 +0100 Subject: [PATCH] Update FMTB.java --- src/net/fexcraft/app/fmt/FMTB.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/net/fexcraft/app/fmt/FMTB.java b/src/net/fexcraft/app/fmt/FMTB.java index 3dc5d866..dd7648fb 100644 --- a/src/net/fexcraft/app/fmt/FMTB.java +++ b/src/net/fexcraft/app/fmt/FMTB.java @@ -54,6 +54,7 @@ import org.lwjgl.stb.STBImage; import org.lwjgl.system.Configuration; import org.lwjgl.system.MemoryStack; +import org.lwjgl.system.MemoryUtil; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -135,10 +136,8 @@ public void run() throws InterruptedException, IOException, NoSuchMethodExceptio glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); //glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); - window = glfwCreateWindow(WIDTH, HEIGHT, "Fex's Modelling Toolbox", 0, 0); - if(window == 0) { - throw new RuntimeException("Failed to create window"); - } + window = glfwCreateWindow(WIDTH, HEIGHT, "Fex's Modelling Toolbox", MemoryUtil.NULL, MemoryUtil.NULL); + if(window == MemoryUtil.NULL) throw new RuntimeException("Failed to create window"); glfwMakeContextCurrent(window); GL.createCapabilities(); //GLUtil.setupDebugMessageCallback();