mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Moved openal native stub loading to java
This commit is contained in:
parent
8585d8b2a5
commit
b7e4214a1a
13 changed files with 30 additions and 89 deletions
|
|
@ -170,6 +170,7 @@ public abstract class AL {
|
|||
oalPaths[oalPaths.length - 1] = "";
|
||||
nCreate(oalPaths);
|
||||
|
||||
AL10.initNativeStubs();
|
||||
ALC.create();
|
||||
|
||||
device = ALC.alcOpenDevice(deviceArguments);
|
||||
|
|
|
|||
|
|
@ -357,6 +357,8 @@ public final class AL10 {
|
|||
/** Distance model */
|
||||
public static final int AL_INVERSE_DISTANCE_CLAMPED = 0xD002;
|
||||
|
||||
static native void initNativeStubs();
|
||||
|
||||
/**
|
||||
* The application can temporarily disable certain AL capabilities on a per Context
|
||||
* basis. This allows the driver implementation to optimize for certain subsets of
|
||||
|
|
|
|||
|
|
@ -165,11 +165,13 @@ public class ALC {
|
|||
if (created) {
|
||||
return;
|
||||
}
|
||||
|
||||
initNativeStubs();
|
||||
init();
|
||||
created = true;
|
||||
}
|
||||
|
||||
private static native void initNativeStubs();
|
||||
|
||||
/**
|
||||
* Calls whatever destruction rutines that are needed
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue