From 5667e4320443289a1c0bd02f54bf466bfc2c5895 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Fri, 17 Jul 2015 14:16:58 +0200 Subject: bcm/vc/iv/DisplayDriver depend on libEGL, pre-load it using GLProfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes libnewt.so: undefined symbol: bcm_host_init" when the NEWT Screen is initialized before OpenGL ES. Signed-off-by: Xerxes Rånby --- src/newt/classes/jogamp/newt/driver/bcm/vc/iv/DisplayDriver.java | 2 ++ 1 file changed, 2 insertions(+) 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"); -- cgit v1.2.3