|
From: Brian M. <ma...@us...> - 2005-12-18 10:54:26
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv643/src/java/org/lwjgl/devil Modified Files: ILUT.java Log Message: disallow creation of ILUT prior to ILU (unable to load native unless ILU has been loaded first) Index: ILUT.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/ILUT.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- ILUT.java 4 Nov 2005 19:22:18 -0000 1.15 +++ ILUT.java 18 Dec 2005 10:54:18 -0000 1.16 @@ -120,6 +120,10 @@ 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; } |