diff options
author | Sven Gothel <[email protected]> | 2010-04-09 02:23:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-09 02:23:06 +0200 |
commit | fbfbfe34ae3364003873a8fafb8482bb6284efc2 (patch) | |
tree | 60b9a2fd856cc2a9b7dd27032ff6df425e661e72 /src/jogl | |
parent | 16c5ff859e1714be198432aaf4f5bd225e7f6d04 (diff) |
Added FIXME comment: DBLBUFOFFSCRN, to tag the impl of forcing single buffer on offscreen/pbuffer
Diffstat (limited to 'src/jogl')
4 files changed, 8 insertions, 8 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java b/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java index eaf29df77..c8faf0f65 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableFactoryImpl.java @@ -125,7 +125,7 @@ public abstract class GLDrawableFactoryImpl extends GLDrawableFactory { throw new GLException("Width and height of pbuffer must be positive (were (" + width + ", " + height + "))"); } - capabilities.setDoubleBuffered(false); // FIXME + capabilities.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN capabilities.setOnscreen(false); capabilities.setPBuffer(true); return createGLPbufferDrawable( createOffscreenWindow(capabilities, chooser, height, height) ); @@ -156,7 +156,7 @@ public abstract class GLDrawableFactoryImpl extends GLDrawableFactory { throw new GLException("Width and height of pbuffer must be positive (were (" + width + ", " + height + "))"); } - capabilities.setDoubleBuffered(false); // FIXME + capabilities.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN capabilities.setOnscreen(false); capabilities.setPBuffer(false); return createOffscreenDrawable( createOffscreenWindow(capabilities, chooser, width, height) ); diff --git a/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLGraphicsConfigurationFactory.java b/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLGraphicsConfigurationFactory.java index f22661238..33e301ee9 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLGraphicsConfigurationFactory.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLGraphicsConfigurationFactory.java @@ -99,7 +99,7 @@ public class EGLGraphicsConfigurationFactory extends GraphicsConfigurationFactor GLCapabilities caps2 = (GLCapabilities) capabilities.clone(); if(!caps2.isOnscreen()) { - // OFFSCREEN !DOUBLE_BUFFER + // OFFSCREEN !DOUBLE_BUFFER // FIXME DBLBUFOFFSCRN caps2.setDoubleBuffered(false); } @@ -273,7 +273,7 @@ public class EGLGraphicsConfigurationFactory extends GraphicsConfigurationFactor if(caps.isOnscreen()) { throw new GLException("Error: Onscreen set: "+caps); } - caps.setDoubleBuffered(false); // FIXME + caps.setDoubleBuffered(false); // FIXME DBLBUFOFFSCRN long eglDisplay = EGL.eglGetDisplay(EGL.EGL_DEFAULT_DISPLAY); if (eglDisplay == EGL.EGL_NO_DISPLAY) { throw new GLException("Failed to created EGL default display: error 0x"+Integer.toHexString(EGL.eglGetError())); diff --git a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java index b82535bfe..563173682 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsWGLGraphicsConfigurationFactory.java @@ -60,13 +60,13 @@ public class WindowsWGLGraphicsConfigurationFactory extends GraphicsConfiguratio protected static WindowsWGLGraphicsConfiguration createDefaultGraphicsConfiguration(AbstractGraphicsScreen absScreen, boolean onscreen, boolean usePBuffer) { GLCapabilities caps = new GLCapabilities(null); - caps.setDoubleBuffered(onscreen); // FIXME + caps.setDoubleBuffered(onscreen); // FIXME DBLBUFOFFSCRN caps.setOnscreen (onscreen); caps.setPBuffer (usePBuffer); GLCapabilities caps2 = (GLCapabilities) caps.clone(); if(!caps2.isOnscreen()) { - // OFFSCREEN !DOUBLE_BUFFER + // OFFSCREEN !DOUBLE_BUFFER // FIXME DBLBUFOFFSCRN caps2.setDoubleBuffered(false); } @@ -84,7 +84,7 @@ public class WindowsWGLGraphicsConfigurationFactory extends GraphicsConfiguratio } GLCapabilities caps2 = (GLCapabilities) caps.clone(); if(!caps2.isOnscreen()) { - // OFFSCREEN !DOUBLE_BUFFER + // OFFSCREEN !DOUBLE_BUFFER // FIXME DBLBUFOFFSCRN caps2.setDoubleBuffered(false); } return new WindowsWGLGraphicsConfiguration(absScreen, caps2, caps, WindowsWGLGraphicsConfiguration.GLCapabilities2PFD(caps2), -1, diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfigurationFactory.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfigurationFactory.java index 5f438cb7f..16e341652 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfigurationFactory.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11GLXGraphicsConfigurationFactory.java @@ -143,7 +143,7 @@ public class X11GLXGraphicsConfigurationFactory extends GraphicsConfigurationFac GLCapabilities caps2 = (GLCapabilities) capabilities.clone(); if(!caps2.isOnscreen()) { - // OFFSCREEN !DOUBLE_BUFFER + // OFFSCREEN !DOUBLE_BUFFER // FIXME DBLBUFOFFSCRN caps2.setDoubleBuffered(false); } |