diff options
author | Sven Gothel <[email protected]> | 2011-11-08 23:56:12 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-08 23:56:12 +0100 |
commit | 835b88a4ec0a01edf23d2af2cc1d22a7550bdf9b (patch) | |
tree | 74a5c2b4f598593816c805dabfda99ca22aa4429 /src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java | |
parent | 2fc4dd34d650348fe916352b101c9a715342a02e (diff) |
Minor edits: Remove unused code and warnings
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java index 1f8ba5cc4..9127a7fb0 100644 --- a/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java +++ b/src/jogl/classes/jogamp/opengl/GLGraphicsConfigurationUtil.java @@ -138,7 +138,7 @@ public class GLGraphicsConfigurationUtil { if( capsRequested.getDoubleBuffered() || capsRequested.isOnscreen() || !capsRequested.isPBuffer()) { // fix caps .. GLCapabilities caps2 = (GLCapabilities) capsRequested.cloneMutable(); - caps2.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN + caps2.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN - we don't need to be single buffered .. caps2.setOnscreen(false); caps2.setPBuffer(true); return caps2; @@ -146,17 +146,6 @@ public class GLGraphicsConfigurationUtil { return capsRequested; } - public static GLCapabilitiesImmutable fixSingleBufferGLCapabilities(GLCapabilitiesImmutable capsRequested) - { - if( capsRequested.getDoubleBuffered() ) { - // fix caps .. - GLCapabilities caps2 = (GLCapabilities) capsRequested.cloneMutable(); - caps2.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN - return caps2; - } - return capsRequested; - } - public static GLCapabilitiesImmutable fixOpaqueGLCapabilities(GLCapabilitiesImmutable capsRequested, boolean isOpaque) { GLCapabilities caps2 = null; |