aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/JoglES2Renderer.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-12 15:18:30 +0200
committerSven Gothel <[email protected]>2012-10-12 15:18:30 +0200
commit04d63492cdb87d49e0f10b8f8744193755e344f7 (patch)
tree1afb8ae81a23aa3265ece2784621d737ea89895a /src/jake2/render/JoglES2Renderer.java
parentf5612e7dfc635359f15b402c2ee9022a5e703a9d (diff)
Enabling GL2ES1 and GL2ES2 driver, using JOGL's ImmModeSink and FixedFunctionPipeline to complete each profilejogl2_es2
GL2ES1 uses ImmModeSink GL2ES2 uses ImmModeSink and FixedFunctionPipeline TODO: Updated JOGL contained binaries w/ next aggregated build (please use the source until then)
Diffstat (limited to 'src/jake2/render/JoglES2Renderer.java')
-rw-r--r--src/jake2/render/JoglES2Renderer.java7
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();
}