lwjgl3: re-enable native loading for native bullet

experimental
Kirill Vainer 9 years ago
parent 2f218f0cdb
commit eada244b34
  1. 11
      jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglContext.java
  2. 2
      jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java

@ -116,6 +116,17 @@ public abstract class LwjglContext implements JmeContext {
return samples;
}
protected void loadNatives() {
if (JmeSystem.isLowPermissions()) {
return;
}
if (NativeLibraryLoader.isUsingNativeBullet()) {
NativeLibraryLoader.loadNativeLibrary("bulletjme", true);
}
}
protected void initContextFirstTime() {
final GLCapabilities capabilities = createCapabilities(settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3));

@ -315,6 +315,8 @@ public abstract class LwjglWindow extends LwjglContext implements Runnable {
});
}
loadNatives();
timer = new NanoTimer();
// For canvas, this will create a pbuffer,

Loading…
Cancel
Save