aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-14 13:08:16 +0200
committerSven Gothel <[email protected]>2011-09-14 13:08:16 +0200
commitf45753d2da46786b023166f805bacbc3bdce71c1 (patch)
treef927ebbd2fd82b60cf279132c0b04f75defe21ce /src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
parent430eff8c3ffab8c69c149ba1c633d2b03f2ef2d3 (diff)
Fix X11/Translucency (NV): Don't enable GLX.GLX_TRANSPARENT_TYPE; Always chooseConfig if translucent
Don't enable GLX.GLX_TRANSPARENT_TYPE (X11) - if enabled, NV driver results in odd transparency effect (very high transparency) Always chooseConfig if translucent (X11) - recommended idx shall stay -1 if translucent, allowing our default chooser to pick up the proper config. this was previous reached due to the unavailable GLX_TRANSPARENT_TYPE request, which is now removed (see above) Allow translucency for non FBConfig, XVisual's only
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
index 0f496b4a2..f4f01195f 100644
--- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
+++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLCapabilities.java
@@ -44,11 +44,11 @@ public class X11GLCapabilities extends GLCapabilities {
public int compare(Object o1, Object o2) {
if ( ! ( o1 instanceof X11GLCapabilities ) ) {
- Class c = (null != o1) ? o1.getClass() : null ;
+ Class<?> c = (null != o1) ? o1.getClass() : null ;
throw new ClassCastException("arg1 not a X11GLCapabilities object: " + c);
}
if ( ! ( o2 instanceof X11GLCapabilities ) ) {
- Class c = (null != o2) ? o2.getClass() : null ;
+ Class<?> c = (null != o2) ? o2.getClass() : null ;
throw new ClassCastException("arg2 not a X11GLCapabilities object: " + c);
}