aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/NativeLibLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/NativeLibLoader.java')
-rw-r--r--src/net/java/games/jogl/impl/NativeLibLoader.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/NativeLibLoader.java b/src/net/java/games/jogl/impl/NativeLibLoader.java
index 75d7a5a5c..cf2b06939 100644
--- a/src/net/java/games/jogl/impl/NativeLibLoader.java
+++ b/src/net/java/games/jogl/impl/NativeLibLoader.java
@@ -58,6 +58,13 @@ public class NativeLibLoader {
}
}
System.loadLibrary("jogl");
+
+ // Workaround for 4845371.
+ // Make sure the first reference to the JNI GetDirectBufferAddress is done
+ // from a privileged context so the VM's internal class lookups will succeed.
+ JAWT jawt = new JAWT();
+ JAWTFactory.JAWT_GetAWT(jawt);
+
return null;
}
});