From 6fbe7f15018c35aca5efaa1a811a6b195e33ed6f Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sat, 23 Oct 2004 08:55:27 +0000 Subject: [PATCH] always call ilInit since it can't be used without anyway --- src/java/org/lwjgl/devil/IL.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/java/org/lwjgl/devil/IL.java b/src/java/org/lwjgl/devil/IL.java index 97a94b90..06410428 100644 --- a/src/java/org/lwjgl/devil/IL.java +++ b/src/java/org/lwjgl/devil/IL.java @@ -50,7 +50,6 @@ public class IL { /** Have we been created? */ protected static boolean created; - public static final int IL_FALSE = 0; public static final int IL_TRUE = 1; @@ -298,7 +297,7 @@ public class IL { public static final int IL_EOF = -1; static { - System.loadLibrary("DevIL"); + System.loadLibrary("DevIL"); System.loadLibrary("lwjgl-devil"); } @@ -405,12 +404,13 @@ public class IL { /** * */ - public static void create() throws LWJGLException { - if (!created) { - IL.initNativeStubs(); - created = true; - } - } + public static void create() throws LWJGLException { + if (!created) { + IL.initNativeStubs(); + IL.ilInit(); + created = true; + } + } // public static native boolean ilLoadData(const ILstring FileName, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp); // public static native boolean ilLoadDataF(ILHANDLE File, ILuint Width, ILuint Height, ILuint Depth, ILubyte Bpp);