Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 243daa2

Browse files
authored
Merge pull request #73 from higgy999/develop
Switched order of loading, wouldn't work
2 parents 5d5bd63 + b760c13 commit 243daa2

File tree

1 file changed

+4
-2
lines changed
  • example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl

1 file changed

+4
-2
lines changed

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleMain.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ public static void main(String[] args) throws UltralightLoadException {
6464
// Load the native libraries from the given directory. This method makes sure everything is loaded in the
6565
// correct order. If you want to manually load all natives, either don't use this function or pass 'false' as
6666
// the second parameter.
67-
UltralightGPUDriverNativeUtil.load(nativesDir);
68-
UltralightJava.load(nativesDir);
67+
// Note that this order matters, as the libraries needed for the GPU Driver in the Ultralight SDK
68+
// need to be loaded before the GPU driver.
69+
UltralightJava.load(nativesDir);
70+
UltralightGPUDriverNativeUtil.load(nativesDir);
6971

7072
// Create and run a simple test application
7173
ExampleApplication application = new ExampleApplication();

0 commit comments

Comments
 (0)