diff options
author | Sven Gothel <[email protected]> | 2018-01-15 09:46:16 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2018-01-15 09:46:16 +0100 |
commit | bd80d24b7b4322eacf806740df09801f18d05306 (patch) | |
tree | 4967b60bca1081482e448e552716c2f77ae11e4f /src/nativewindow | |
parent | 6532bee34f1a91ac1d87f5d105a9caaad8a8f134 (diff) | |
parent | 6665ecc942fff70667a2c3ca3d25eba54b909faa (diff) |
Merge pull request #96 from gohai/vc4-module
Change BCM VC IV detection to handle presence of vc4 DRI module
Diffstat (limited to 'src/nativewindow')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java index 9cc15c650..448c9d2bf 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java @@ -140,9 +140,11 @@ public abstract class NativeWindowFactory { return AccessController.doPrivileged(new PrivilegedAction<Boolean>() { private final File vcliblocation = new File( "/opt/vc/lib/libbcm_host.so"); + private final File vc4modlocation = new File( + "/sys/module/vc4"); @Override public Boolean run() { - if ( vcliblocation.isFile() ) { + if ( vcliblocation.isFile() && !vc4modlocation.isDirectory() ) { return Boolean.TRUE; } return Boolean.FALSE; |