summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java')
-rw-r--r--src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java b/src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java
index a24f53f..cff9fe3 100644
--- a/src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java
+++ b/src/net/java/joglutils/msg/elements/GLViewingMatrixElement.java
@@ -75,7 +75,7 @@ public class GLViewingMatrixElement extends ViewingMatrixElement {
// Must push the combined viewing and modelview matrices down to OpenGL
Mat4f mdl = ModelMatrixElement.getInstance(state).getMatrix();
temp.mul(matrix, mdl);
- GL gl = GLU.getCurrentGL();
+ GL2 gl = GLU.getCurrentGL().getGL2();
if (gl.isExtensionAvailable("GL_VERSION_1_3")) {
gl.glLoadTransposeMatrixf(temp.getRowMajorData(), 0);
} else {