aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLContextImpl.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-10 04:51:28 +0100
committerSven Gothel <[email protected]>2012-03-10 04:51:28 +0100
commitf0f696c4253691503a0d66636ea779e0731bda84 (patch)
tree74007b3923b06e040528429f7503715af74bc1a4 /src/jogl/classes/jogamp/opengl/GLContextImpl.java
parent42a08f9c8a6b86a104d9feba6e29397933b020c5 (diff)
GL/GLContext: Properly define swapInterval incl. default value for EGL (1) and desktop (undefined).
*GLContext.setSwapIntervalImpl: Simple return success, set state in GLContext.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLContextImpl.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLContextImpl.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
index 8c9ac589a..49b90008b 100644
--- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java
+++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
@@ -1083,6 +1083,8 @@ public abstract class GLContextImpl extends GLContext {
// Set GL Version (complete w/ version string)
//
setContextVersion(major, minor, ctxProfileBits, true);
+
+ setDefaultSwapInterval();
}
protected final void removeCachedVersion(int major, int minor, int ctxProfileBits) {