Skip to content

Commit

Permalink
Fix[AL]: correct usage of ALC.createCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell authored Feb 5, 2025
1 parent d10f817 commit cb201ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lwjgl/openal/src/main/java/org/lwjgl/openal/AL.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static void create(String deviceArguments, int contextFrequency, int cont
ALC10.alcMakeContextCurrent(contextHandle);
//alContext = new ALContext(alDevice, contextHandle);
alContext = ALC10.alcCreateContext(contextHandle, (IntBuffer)null);
alContextCaps = ALC.createCapabilities(alContext);
alContextCaps = ALC.createCapabilities(alDevice);

alCaps = AL.createCapabilities(alContextCaps);

Expand Down Expand Up @@ -137,7 +137,7 @@ public static void create() throws LWJGLException {
ALC10.alcMakeContextCurrent(contextHandle);
//alContext = new ALContext(alDevice, contextHandle);
alContext = ALC10.alcCreateContext(contextHandle, (IntBuffer)null);
alContextCaps = ALC.createCapabilities(alContext);
alContextCaps = ALC.createCapabilities(alDevice);

alCaps = AL.createCapabilities(alContextCaps);

Expand Down

0 comments on commit cb201ae

Please sign in to comment.