diff options
author | sg215889 <[email protected]> | 2009-07-30 22:09:24 -0700 |
---|---|---|
committer | sg215889 <[email protected]> | 2009-07-30 22:09:24 -0700 |
commit | 9a4619d5ab1c0441dfb273d057e288b4bf4c6dbc (patch) | |
tree | 32a937f2eefbf31f6785b9e2bea805cb0f86cb6c /src/jogl/classes/com/sun/opengl/impl/egl | |
parent | cd0ec06b5e8a5ec39c8162e87d23c935b506021e (diff) |
Fix SwapInterval (return value, check ctx current, egl), add getSwapInterval.
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/impl/egl')
-rwxr-xr-x | src/jogl/classes/com/sun/opengl/impl/egl/EGLContext.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/egl/EGLContext.java b/src/jogl/classes/com/sun/opengl/impl/egl/EGLContext.java index 45fe0fcd3..1a75f03a9 100755 --- a/src/jogl/classes/com/sun/opengl/impl/egl/EGLContext.java +++ b/src/jogl/classes/com/sun/opengl/impl/egl/EGLContext.java @@ -261,6 +261,12 @@ public abstract class EGLContext extends GLContextImpl { } } + protected void setSwapIntervalImpl(int interval) { + if (EGL.eglSwapInterval(drawable.getDisplay(), interval)) { + currentSwapInterval = interval ; + } + } + public abstract void bindPbufferToTexture(); public abstract void releasePbufferFromTexture(); |