summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
diff options
context:
space:
mode:
authorXerxes Rånby <[email protected]>2019-12-04 00:11:40 +0100
committerXerxes Rånby <[email protected]>2019-12-04 00:11:40 +0100
commit164db661e2688bfbc53fec3357fc6885b14ab893 (patch)
tree8d38d1c7d1eef9f71f0bbec2b2336e74eddbb890 /src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
parentd3f454a3d8d608f9efe90987af3f08db89ad6e25 (diff)
VC4: Only load Broadcom EGL driver when guessVCIVUsed
Broadcom VC IV can be used from both console and from inside X11 When used from inside X11 rendering is done on an DispmanX overlay surface while keeping an X11 nativewindow under as input. When Broadcom VC IV is guessed only the Broadcom DispmanX EGL driver is loaded. Therefore standard TYPE_X11 EGL can not be used.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java56
1 files changed, 27 insertions, 29 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
index 45424c7e8..401b3b6e9 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java
@@ -57,43 +57,41 @@ public final class EGLES2DynamicLibraryBundleInfo extends EGLDynamicLibraryBundl
*/
final boolean bcm_vc_iv_quirk = BcmVCArtifacts.guessVCIVUsed(false);
- // ES3: This is the default lib name, according to the spec
- libsGL.add("libGLESv3.so.3");
+ if (bcm_vc_iv_quirk) {
+ libsGL.add("libbrcmGLESv2.so");
+ } else {
+ // ES3: This is the default lib name, according to the spec
+ libsGL.add("libGLESv3.so.3");
- // ES3: Try these as well, if spec fails
- libsGL.add("libGLESv3.so");
- libsGL.add("GLESv3");
+ // ES3: Try these as well, if spec fails
+ libsGL.add("libGLESv3.so");
+ libsGL.add("GLESv3");
- // ES3: Alternative names
- libsGL.add("GLES30");
+ // ES3: Alternative names
+ libsGL.add("GLES30");
- // ES3: For windows distributions using the 'unlike' lib prefix
- // where our tool does not add it.
- libsGL.add("libGLESv3");
- libsGL.add("libGLES30");
+ // ES3: For windows distributions using the 'unlike' lib prefix
+ // where our tool does not add it.
+ libsGL.add("libGLESv3");
+ libsGL.add("libGLES30");
- // ES2: This is the default lib name, according to the spec
- if (!bcm_vc_iv_quirk) {
+ // ES2: This is the default lib name, according to the spec
libsGL.add("libGLESv2.so.2");
- }
-
- // ES2: Try these as well, if spec fails
- libsGL.add("libGLESv2.so");
- libsGL.add("GLESv2");
- if (bcm_vc_iv_quirk) {
- libsGL.add("libbrcmGLESv2.so");
- }
+ // ES2: Try these as well, if spec fails
+ libsGL.add("libGLESv2.so");
+ libsGL.add("GLESv2");
- // ES2: Alternative names
- libsGL.add("GLES20");
- libsGL.add("GLESv2_CM");
+ // ES2: Alternative names
+ libsGL.add("GLES20");
+ libsGL.add("GLESv2_CM");
- // ES2: For windows distributions using the 'unlike' lib prefix
- // where our tool does not add it.
- libsGL.add("libGLESv2");
- libsGL.add("libGLESv2_CM");
- libsGL.add("libGLES20");
+ // ES2: For windows distributions using the 'unlike' lib prefix
+ // where our tool does not add it.
+ libsGL.add("libGLESv2");
+ libsGL.add("libGLESv2_CM");
+ libsGL.add("libGLES20");
+ }
libsList.add(libsGL);
}