|
From: <ma...@us...> - 2007-05-20 17:47:34
|
Revision: 2825
http://svn.sourceforge.net/java-game-lib/?rev=2825&view=rev
Author: matzon
Date: 2007-05-20 10:47:33 -0700 (Sun, 20 May 2007)
Log Message:
-----------
reordered context destruction - fixing some invalidation issues
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/openal/ALC10.java
Modified: trunk/LWJGL/src/java/org/lwjgl/openal/ALC10.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/openal/ALC10.java 2007-05-20 17:44:59 UTC (rev 2824)
+++ trunk/LWJGL/src/java/org/lwjgl/openal/ALC10.java 2007-05-20 17:47:33 UTC (rev 2825)
@@ -357,10 +357,10 @@
*/
public static void alcDestroyContext(ALCcontext context) {
synchronized(ALC10.contexts) {
+ ALCdevice device = alcGetContextsDevice(context);
nalcDestroyContext(getContext(context));
+ device.removeContext(context);
context.setInvalid();
- ALCdevice device = alcGetContextsDevice(context);
- device.removeContext(context);
}
}
native static void nalcDestroyContext(long context);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|