aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java b/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java
index 50cf5c9f4..479e8586d 100644
--- a/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLDrawable.java
@@ -94,6 +94,8 @@ public class WindowsOnscreenGLDrawable extends WindowsGLDrawable {
}
public void swapBuffers() throws GLException {
+ // FIXME: currently must do this while the surface is locked
+ // (i.e., a context is current); fix and/or specify this?
if (!WGL.SwapBuffers(hdc) && (WGL.GetLastError() != 0)) {
throw new GLException("Error swapping buffers");
}