aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2015-07-17 14:16:58 +0200
committerXerxes Rånby <[email protected]>2015-07-17 14:16:58 +0200
commit5667e4320443289a1c0bd02f54bf466bfc2c5895 (patch)
tree3f08ae6d442eb32267d176a970c9a0909920e56b /src/newt
parent51268bc9874de7cc34dfe7741187238f7d46aafc (diff)
bcm/vc/iv/DisplayDriver depend on libEGL, pre-load it using GLProfile
Fixes libnewt.so: undefined symbol: bcm_host_init" when the NEWT Screen is initialized before OpenGL ES. Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/driver/bcm/vc/iv/DisplayDriver.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/DisplayDriver.java b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/DisplayDriver.java
index 3d3fde4d7..d111e850e 100644
--- a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/DisplayDriver.java
+++ b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/DisplayDriver.java
@@ -40,6 +40,7 @@ import com.jogamp.common.nio.Buffers;
import com.jogamp.common.util.IOUtil;
import com.jogamp.opengl.egl.EGL;
import com.jogamp.opengl.util.PNGPixelRect;
+import com.jogamp.opengl.GLProfile;
import jogamp.newt.DisplayImpl;
import jogamp.newt.NEWTJNILibLoader;
@@ -52,6 +53,7 @@ public class DisplayDriver extends DisplayImpl {
static {
NEWTJNILibLoader.loadNEWT();
+ GLProfile.initSingleton();
if (!DisplayDriver.initIDs()) {
throw new NativeWindowException("Failed to initialize bcm.vc.iv Display jmethodIDs");