From 5cdf986ed61b92918545a34c2d44a397ce7871e3 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sun, 18 Dec 2005 10:54:18 +0000 Subject: [PATCH] disallow creation of ILUT prior to ILU (unable to load native unless ILU has been loaded first) --- src/java/org/lwjgl/devil/ILUT.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/lwjgl/devil/ILUT.java b/src/java/org/lwjgl/devil/ILUT.java index 5b17f0fb..4d2b9481 100644 --- a/src/java/org/lwjgl/devil/ILUT.java +++ b/src/java/org/lwjgl/devil/ILUT.java @@ -120,6 +120,10 @@ public class ILUT { throw new LWJGLException("Cannot create ILUT without having created IL instance"); } + if(!ILU.isCreated()) { + throw new LWJGLException("Cannot create ILUT without having created ILU instance"); + } + ILNative.createILUT(); created = true; }