aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLContextImpl.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-01 02:05:50 +0200
committerSven Gothel <[email protected]>2015-09-01 02:05:50 +0200
commitaacc8afdca0b1376f91dcc68aa3ae3b39c7aba51 (patch)
treebbe7308bcebecaaeab5fcecd236b96bb6f04dfb3 /src/jogl/classes/jogamp/opengl/GLContextImpl.java
parentee2fea13b20644e45c77f12a8b6d6f55941c27c8 (diff)
Bug 1202: Fix vsync regression on OSX when using CALayer
On OSX using CALayer for onscreen rendering, the drawable is utilizing an offscreen FBO. Hence we need to move the vsync-skip-operation criteria, i.e. skip if offscreen, down to the implementation.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLContextImpl.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLContextImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
index 6e904d0ed..3d2c9a3e1 100644
--- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java
+++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
@@ -2636,8 +2636,8 @@ public abstract class GLContextImpl extends GLContext {
return setSwapIntervalNC(interval);
}
protected final boolean setSwapIntervalNC(final int interval) throws GLException {
- if( drawable.getChosenGLCapabilities().isOnscreen() &&
- ( !drawableRetargeted || !hasRendererQuirk(GLRendererQuirks.NoSetSwapIntervalPostRetarget) )
+ if( !drawableRetargeted ||
+ !hasRendererQuirk(GLRendererQuirks.NoSetSwapIntervalPostRetarget)
)
{
final Integer usedInterval = setSwapIntervalImpl2(interval);