diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/net/java/games/joal/ALCImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/net/java/games/joal/ALCImpl.java b/src/java/net/java/games/joal/ALCImpl.java index ca180ef..05d86bc 100644 --- a/src/java/net/java/games/joal/ALCImpl.java +++ b/src/java/net/java/games/joal/ALCImpl.java @@ -155,13 +155,12 @@ final class ALCImpl implements ALC { public Device alcGetContextsDevice(Context context) { Device result = null; - int devicePtr = getContextDeviceNative(context.pointer); - Device device = new ALC.Device(devicePtr); - + int devicePtr = getContextsDeviceNative(context.pointer); + result = new ALC.Device(devicePtr); return result; } - private native int getContextDeviceNative(int context); + private native int getContextsDeviceNative(int context); private void exit() { @@ -169,6 +168,7 @@ final class ALCImpl implements ALC { if (alcContext != null) { Device alcDevice = alcGetContextsDevice(alcContext); + System.out.println("alcDevice = " + alcDevice); alcMakeContextCurrent(null); alcDestroyContext(alcContext); alcCloseDevice(alcDevice); |