summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-11 17:57:33 +0200
committerSven Gothel <[email protected]>2011-08-11 17:57:33 +0200
commit655819abacb297016ea347d2ee967032c4a5a493 (patch)
treeb6de80e7b2493c3e1b0f134fbb83566b2a443311 /src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java
parentcc551ca89bf207cafc83e7c8d9b22fd866ec4a26 (diff)
Android Cleanup: Remove commented code, make immutables final again
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java b/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java
index 1eda2fb7a..ed5b88455 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLGraphicsConfiguration.java
@@ -152,15 +152,15 @@ public class EGLGraphicsConfiguration extends DefaultGraphicsConfiguration imple
GLProfile glp, long display, long config,
int winattrmask) {
final int allDrawableTypeBits = EGLConfigDrawableTypeBits(display, config);
- int drawableTypeBits = winattrmask & allDrawableTypeBits;
+ final int drawableTypeBits = winattrmask & allDrawableTypeBits;
if( 0 == drawableTypeBits ) {
return false;
}
final IntBuffer val = Buffers.newDirectIntBuffer(1);
- int cfgID;
- int rType;
+ final int cfgID;
+ final int rType;
// get the configID
if(!EGL.eglGetConfigAttrib(display, config, EGL.EGL_CONFIG_ID, val)) {
@@ -234,18 +234,6 @@ public class EGLGraphicsConfiguration extends DefaultGraphicsConfiguration imple
caps.setTransparentAlphaValue(val.get(0)==EGL.EGL_DONT_CARE?-1:val.get(0));
} */
}
- /**
- if(caps.getNativeVisualID() == 0) {
- boolean isWindowBit = 0 != ( drawableTypeBits & GLGraphicsConfigurationUtil.WINDOW_BIT );
- drawableTypeBits &= ~GLGraphicsConfigurationUtil.WINDOW_BIT;
- if( 0 == drawableTypeBits ) {
- if(DEBUG) {
- System.err.println("EGL_NATIVE_VISUAL_ID: 0, windowBit removed: "+isWindowBit+
- ", no drawable bits left, bail out for: "+ caps);
- }
- return false;
- }
- } */
return GLGraphicsConfigurationUtil.addGLCapabilitiesPermutations(capsBucket, caps, drawableTypeBits );
}