From b760c134675e011a6a47f3f60eb3e1273de89610 Mon Sep 17 00:00:00 2001 From: Litl Toast Date: Tue, 9 Nov 2021 13:49:54 -0500 Subject: [PATCH] Switched order of loading, wouldn't work look at #71 for more info --- .../com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java b/example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java index 572c80e..a4af9df 100644 --- a/example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java +++ b/example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java @@ -64,8 +64,10 @@ public static void main(String[] args) throws UltralightLoadException { // Load the native libraries from the given directory. This method makes sure everything is loaded in the // correct order. If you want to manually load all natives, either don't use this function or pass 'false' as // the second parameter. - UltralightGPUDriverNativeUtil.load(nativesDir); - UltralightJava.load(nativesDir); + // Note that this order matters, as the libraries needed for the GPU Driver in the Ultralight SDK + // need to be loaded before the GPU driver. + UltralightJava.load(nativesDir); + UltralightGPUDriverNativeUtil.load(nativesDir); // Create and run a simple test application ExampleApplication application = new ExampleApplication();