diff options
Diffstat (limited to 'src/jake2/render/JoglES2Renderer.java')
-rw-r--r-- | src/jake2/render/JoglES2Renderer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jake2/render/JoglES2Renderer.java b/src/jake2/render/JoglES2Renderer.java index 109df9e..d7137fe 100644 --- a/src/jake2/render/JoglES2Renderer.java +++ b/src/jake2/render/JoglES2Renderer.java @@ -29,6 +29,7 @@ import javax.media.nativewindow.util.Dimension; import jake2.Defines; import jake2.client.refdef_t; import jake2.client.refexport_t; +import jake2.qcommon.Cvar; import jake2.render.opengl.JoglES2Driver; import jake2.sys.NEWTKBD; import jake2.sys.KBD; @@ -67,10 +68,14 @@ final class JoglES2Renderer extends JoglES2Driver implements refexport_t, Ref { public boolean Init(int vid_xpos, int vid_ypos) { // init the OpenGL drivers impl.setGLDriver(this); - // pre init + + // Cvar.Set("gl_clear", "1"); // FIXME + + // pre init, reads Cvar's if (!impl.R_Init(vid_xpos, vid_ypos)) return false; // activates the OpenGL context activate(); + // post init return impl.R_Init2(); } |