Skip to content

Commit

Permalink
Update FMTB.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Feb 20, 2020
1 parent e15c27b commit 60cdb82
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/net/fexcraft/app/fmt/FMTB.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 60cdb82

Please sign in to comment.