From cc20781a02da5913b95d65a82172872b047b9100 Mon Sep 17 00:00:00 2001 From: shadowislord Date: Sat, 7 Jun 2014 12:53:55 -0400 Subject: [PATCH] * Ensure LwjglOffscreenBuffer extracts the required natives * Fix Installer class in SDK to use NativeLibraryLoader.setCustomNativesFolder() instead of the Natives.setCustomDir() --- .../main/java/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java | 1 + sdk/jme3-core/src/com/jme3/gde/core/Installer.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java index 27af9317f..82109abda 100644 --- a/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java +++ b/jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglOffscreenBuffer.java @@ -145,6 +145,7 @@ public class LwjglOffscreenBuffer extends LwjglContext implements Runnable { } public void run(){ + loadNatives(); logger.log(Level.FINE, "Using LWJGL {0}", Sys.getVersion()); initInThread(); while (!needClose.get()){ diff --git a/sdk/jme3-core/src/com/jme3/gde/core/Installer.java b/sdk/jme3-core/src/com/jme3/gde/core/Installer.java index b309327af..a5b42001a 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/Installer.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/Installer.java @@ -109,8 +109,8 @@ public class Installer extends ModuleInstall { logger.log(Level.INFO, "Create settings dir {0}", projectDir); file.mkdirs(); } - com.jme3.system.Natives.setExtractionDir(jmpDir); - + + com.jme3.system.NativeLibraryLoader.setCustomExtractionFolder(jmpDir); //avoid problems with lightweight popups JPopupMenu.setDefaultLightWeightPopupEnabled(false); }