aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/opengl/JoglDummyDriver.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/render/opengl/JoglDummyDriver.java')
-rw-r--r--src/jake2/render/opengl/JoglDummyDriver.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/jake2/render/opengl/JoglDummyDriver.java b/src/jake2/render/opengl/JoglDummyDriver.java
index e962c37..4ba98a0 100644
--- a/src/jake2/render/opengl/JoglDummyDriver.java
+++ b/src/jake2/render/opengl/JoglDummyDriver.java
@@ -97,8 +97,9 @@ public abstract class JoglDummyDriver extends DummyGL implements GLDriver {
return true;
}
- public void beginFrame(float camera_separation) {
- activateGLContext();
+ @Override
+ public boolean beginFrame(float camera_separation) {
+ return activateGLContext(false);
}
public void endFrame() {
@@ -126,12 +127,12 @@ public abstract class JoglDummyDriver extends DummyGL implements GLDriver {
callback.execute();
}
- protected final void activateGLContext() {
- newtWin.activateGLContext();
+ protected final boolean activateGLContext(boolean force) {
+ return newtWin.activateGLContext(false);
}
protected final void deactivateGLContext() {
- newtWin.activateGLContext();
+ newtWin.deactivateGLContext();
}
// --------------------------------------------------------------------------