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; }