From 6944d3485ad005c6cd69a3122479f1fbaef26dfc Mon Sep 17 00:00:00 2001
From: Sven Gothel
Date: Tue, 18 Jun 2013 01:44:39 +0200
Subject: GLDynamicLibraryBundleInfo.shallLinkGlobal(): Defaults to 'true' now,
allowing to remove specialized values.
- Windows always used global
- The OpenGL library is always available by all processes system wide.
- Tested on OSX (was using local, previously).
---
.../jogamp/opengl/GLDynamicLibraryBundleInfo.java | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
(limited to 'src/jogl/classes/jogamp/opengl/GLDynamicLibraryBundleInfo.java')
diff --git a/src/jogl/classes/jogamp/opengl/GLDynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/GLDynamicLibraryBundleInfo.java
index 4c82fc2b3..a2e3b3175 100644
--- a/src/jogl/classes/jogamp/opengl/GLDynamicLibraryBundleInfo.java
+++ b/src/jogl/classes/jogamp/opengl/GLDynamicLibraryBundleInfo.java
@@ -36,11 +36,21 @@ public abstract class GLDynamicLibraryBundleInfo implements DynamicLibraryBundle
protected GLDynamicLibraryBundleInfo() {
}
- /** default **/
- @Override
- public boolean shallLinkGlobal() { return false; }
-
- /** default **/
+ /**
+ * Returns true
,
+ * since we might load a desktop GL library and allow symbol access to subsequent libs.
+ *
+ * This respects old DRI requirements:
+ *
+ * http://dri.sourceforge.net/doc/DRIuserguide.html
+ *
+ *
+ */
+ public boolean shallLinkGlobal() { return true; }
+
+ /**
+ * Default value: false
.
+ */
@Override
public boolean shallLookupGlobal() { return false; }
--
cgit v1.2.3
From 889ba9488ca07b59fdcc378642a2dc20676d69a3 Mon Sep 17 00:00:00 2001
From: Sven Gothel
Date: Fri, 21 Jun 2013 04:39:21 +0200
Subject: Security: Apply security changes from GlueGen
GlueGen related commits
- 23341a2df2d2ea36784a16fa1db8bc7385351a12
- 2d8e25398e929f553c4524e9c57f083d90ba4e08
- 8cabcd2de8b46c42dffcaaf46ccc2dc4d092ebba
- f69831574d4927d03d40c330d0b047d8c89622a4
- eb842815498f5926828b49c48fffce22fc9586a2
---
.../opengl/cg/CgDynamicLibraryBundleInfo.java | 21 +++++----
.../opengl/DesktopGLDynamicLibraryBundleInfo.java | 4 +-
.../opengl/DesktopGLDynamicLookupHelper.java | 4 +-
src/jogl/classes/jogamp/opengl/GLContextImpl.java | 54 +++++++++++++++-------
.../jogamp/opengl/GLDebugMessageHandler.java | 9 ++--
.../jogamp/opengl/GLDynamicLibraryBundleInfo.java | 11 +++--
.../jogamp/opengl/GLDynamicLookupHelper.java | 2 +-
.../egl/DesktopES2DynamicLibraryBundleInfo.java | 6 +--
src/jogl/classes/jogamp/opengl/egl/EGLContext.java | 3 +-
.../jogamp/opengl/egl/EGLDrawableFactory.java | 12 ++---
.../opengl/egl/EGLDynamicLibraryBundleInfo.java | 6 +--
.../opengl/egl/EGLES1DynamicLibraryBundleInfo.java | 4 +-
.../opengl/egl/EGLES2DynamicLibraryBundleInfo.java | 4 +-
.../cgl/MacOSXCGLDynamicLibraryBundleInfo.java | 4 +-
.../av/impl/FFMPEGDynamicLibraryBundleInfo.java | 38 +++++++++------
.../opengl/util/av/impl/FFMPEGMediaPlayer.java | 36 +++++++++------
.../windows/wgl/WindowsWGLDrawableFactory.java | 31 ++++++++-----
.../wgl/WindowsWGLDynamicLibraryBundleInfo.java | 4 +-
.../opengl/x11/glx/X11GLXDrawableFactory.java | 31 ++++++++-----
.../x11/glx/X11GLXDynamicLibraryBundleInfo.java | 4 +-
20 files changed, 174 insertions(+), 114 deletions(-)
(limited to 'src/jogl/classes/jogamp/opengl/GLDynamicLibraryBundleInfo.java')
diff --git a/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java b/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java
index d160eccff..ca4846939 100644
--- a/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java
+++ b/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java
@@ -39,8 +39,8 @@ import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.*;
-public class CgDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo {
- private static List glueLibNames;
+public final class CgDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo {
+ private static final List glueLibNames;
static {
AccessController.doPrivileged(new PrivilegedAction