diff options
Diffstat (limited to 'src/jake2/render/JoglGL2Renderer.java')
-rw-r--r-- | src/jake2/render/JoglGL2Renderer.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/jake2/render/JoglGL2Renderer.java b/src/jake2/render/JoglGL2Renderer.java index ef5117b..3ff7ec6 100644 --- a/src/jake2/render/JoglGL2Renderer.java +++ b/src/jake2/render/JoglGL2Renderer.java @@ -71,7 +71,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { // pre init, reads Cvar's if (!impl.R_Init(vid_xpos, vid_ypos)) return false; // activates the OpenGL context - activateGLContext(); + activateGLContext(true); // post init return impl.R_Init2(); @@ -88,7 +88,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { * @see jake2.client.refexport_t#BeginRegistration(java.lang.String) */ public final void BeginRegistration(String map) { - activateGLContext(); + activateGLContext(true); impl.R_BeginRegistration(map); } @@ -96,7 +96,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { * @see jake2.client.refexport_t#RegisterModel(java.lang.String) */ public final model_t RegisterModel(String name) { - activateGLContext(); + activateGLContext(true); return impl.R_RegisterModel(name); } @@ -104,7 +104,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { * @see jake2.client.refexport_t#RegisterSkin(java.lang.String) */ public final image_t RegisterSkin(String name) { - activateGLContext(); + activateGLContext(true); return impl.R_RegisterSkin(name); } @@ -112,14 +112,14 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { * @see jake2.client.refexport_t#RegisterPic(java.lang.String) */ public final image_t RegisterPic(String name) { - activateGLContext(); + activateGLContext(true); return impl.Draw_FindPic(name); } /** * @see jake2.client.refexport_t#SetSky(java.lang.String, float, float[]) */ public final void SetSky(String name, float rotate, float[] axis) { - activateGLContext(); + activateGLContext(true); impl.R_SetSky(name, rotate, axis); } @@ -127,7 +127,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { * @see jake2.client.refexport_t#EndRegistration() */ public final void EndRegistration() { - activateGLContext(); + activateGLContext(true); impl.R_EndRegistration(); } @@ -163,7 +163,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { * @see jake2.client.refexport_t#DrawChar(int, int, int) */ public final void DrawChar(int x, int y, int num) { - activateGLContext(); + activateGLContext(true); impl.Draw_Char(x, y, num); } @@ -205,8 +205,8 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { /** * @see jake2.client.refexport_t#BeginFrame(float) */ - public final void BeginFrame(float camera_separation) { - impl.R_BeginFrame(camera_separation); + public final boolean BeginFrame(float camera_separation) { + return impl.R_BeginFrame(camera_separation); } /** @@ -224,7 +224,7 @@ final class JoglGL2Renderer extends JoglGL2Driver implements refexport_t, Ref { } public void screenshot() { - activateGLContext(); + activateGLContext(true); impl.GL_ScreenShot_f(); } |