OpenAL: Made AL.create complain if it is already created to match Display.create behaviour

This commit is contained in:
Elias Naur 2005-09-16 06:50:34 +00:00
parent f7aa8b982b
commit 2bb7d78c0f
1 changed files with 2 additions and 3 deletions

View File

@ -92,9 +92,8 @@ public final class AL {
public static void create(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized)
throws LWJGLException {
if (created) {
return;
}
if (created)
throw new IllegalStateException("Only one OpenAL context may be instantiated at any one time.");
String[] oalPaths = LWJGLUtil.getLibraryPaths(new String[]{
"lwjglaudio", "lwjglaudio.dll",
"openal", "libopenal.so",