aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/game/GameManager.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-12-23 13:53:36 +0100
committerSven Gothel <[email protected]>2012-12-23 13:53:36 +0100
commit7cf2ca62bed2a8a9541f09a72d8a26e4f1203de2 (patch)
tree72b37e9a58bee51ba9be3cb8d4b85b722f476161 /src/ru/olamedia/game/GameManager.java
parent4bd8df723573250f11afb7b67c7235f8dc8b631e (diff)
Shader: Add 'current' ShaderState setting via GLContext attachement (removed from latest JOGL); Associate created GLArrayDataServer w/ current ShaderState; Add notes re: GL2.GL_QUADS
Diffstat (limited to 'src/ru/olamedia/game/GameManager.java')
-rw-r--r--src/ru/olamedia/game/GameManager.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ru/olamedia/game/GameManager.java b/src/ru/olamedia/game/GameManager.java
index 7e1ed71..257f3d4 100644
--- a/src/ru/olamedia/game/GameManager.java
+++ b/src/ru/olamedia/game/GameManager.java
@@ -5,7 +5,6 @@ import java.util.Set;
import javax.media.opengl.GL;
import javax.media.opengl.GL2ES2;
-import javax.media.opengl.GL3;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
@@ -297,7 +296,7 @@ public class GameManager implements GLEventListener {
@Override
public void display(GLAutoDrawable drawable) {
- final GL3 gl = drawable.getGL().getGL3();
+ // final GL gl = drawable.getGL();
// gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
// gl.glClearColor(0.2f, 0.2f, 0.2f, 1);
renderer.render(drawable);
@@ -316,7 +315,7 @@ public class GameManager implements GLEventListener {
@Override
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
- final GL gl = drawable.getGL().getGL2ES2();
+ final GL gl = drawable.getGL();
gl.glViewport(0, 0, width, height);
renderer.reshape(drawable);
}