aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2018-01-16 06:45:46 +0100
committerSven Gothel <[email protected]>2018-01-16 06:45:46 +0100
commit347271ffdd09153a2334fda593774d49050f84e0 (patch)
tree1a44a3401acfd2c9c44bef693db10ea14b3f323f /src/jogl
parentbd80d24b7b4322eacf806740df09801f18d05306 (diff)
Bug 1290: Expand query whether BCM IV is being used, exclude '/dev/dri/card0'rcpulled
Also refactor query to jogamp.nativewindow.BcmVCArtifacts
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
index 6b4a3ea99..038194d58 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
@@ -28,10 +28,11 @@
package jogamp.opengl.egl;
-import java.io.File;
import java.util.ArrayList;
import java.util.List;
+import jogamp.nativewindow.BcmVCArtifacts;
+
/**
* <p>
* Covering ES3 and ES2.
@@ -42,21 +43,20 @@ public final class EGLES2DynamicLibraryBundleInfo extends EGLDynamicLibraryBundl
super();
}
+
@Override
public final List<List<String>> getToolLibNames() {
- // Prefer libGLESv2.so over libGLESv2.so.2 for Broadcom graphics
- // when the VC4 DRM driver isn't present
- final File vcliblocation = new File(
- "/opt/vc/lib/libbcm_host.so");
- final File vc4modlocation = new File(
- "/sys/module/vc4");
- final boolean bcm_vc_iv_quirk = vcliblocation.isFile() && !vc4modlocation.isDirectory();
-
final List<List<String>> libsList = new ArrayList<List<String>>();
{
final List<String> libsGL = new ArrayList<String>();
+ /**
+ * Prefer libGLESv2.so over libGLESv2.so.2 for proprietary
+ * Broadcom graphics when the VC4 DRM Xorg driver isn't present
+ */
+ final boolean bcm_vc_iv_quirk = BcmVCArtifacts.guessVCIVUsed();
+
// ES3: This is the default lib name, according to the spec
libsGL.add("libGLESv3.so.3");