From 0b97da22f81ed7a80dbf2b63daab85044465aa8a Mon Sep 17 00:00:00 2001 From: mrdev023 Date: Sun, 28 Aug 2016 21:21:31 +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 789d294..e770124 100644 --- a/src/mrdev023/opengl/Display.java +++ b/src/mrdev023/opengl/Display.java @@ -21,7 +21,7 @@ public class Display { private static boolean hasResized = false; public static void create(String title,int width,int height){ - if ( glfwInit() != GL11.GL_TRUE ) + if ( !glfwInit() ) throw new IllegalStateException("Unable to initialize GLFW"); TITLE = title; @@ -31,7 +31,7 @@ public class Display { } public static void create(String title,int width,int height,int major,int minor){ - if ( glfwInit() != GL11.GL_TRUE ) + if ( !glfwInit() ) throw new IllegalStateException("Unable to initialize GLFW"); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, major); // Nous voulons OpenGL 3.3 @@ -57,7 +57,7 @@ public class Display { } public static void create(String title,int width,int height,int major,int minor,int sample){ - if ( glfwInit() != GL11.GL_TRUE ) + if ( !glfwInit() ) throw new IllegalStateException("Unable to initialize GLFW"); glfwWindowHint(GLFW_SAMPLES, sample); // antialiasing 4x