summaryrefslogtreecommitdiff
path: root/2d
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-02-15 13:15:53 -0500
committerDavid Thompson <dthompson2@worcester.edu>2014-02-16 10:46:58 -0500
commitf34f60a7a2e3e96a1c92e1000531589aa97b15fe (patch)
tree300300c3737340a6490b4df25964f6ccab3b5ec5 /2d
parent74dd2eb94d8aebe74da9c21bd0175140a6afedb0 (diff)
Remove calls that change OpenGL matrix mode.
* 2d/game.scm (draw): Remove matrix mode calls.
Diffstat (limited to '2d')
-rw-r--r--2d/game.scm7
1 files changed, 1 insertions, 6 deletions
diff --git a/2d/game.scm b/2d/game.scm
index 21bad86..b66f2ea 100644
--- a/2d/game.scm
+++ b/2d/game.scm
@@ -71,12 +71,7 @@
"Render a frame."
(let ((width (signal-ref window-width))
(height (signal-ref window-height)))
- (gl-viewport 0 0 width height)
- (set-gl-matrix-mode (matrix-mode projection))
- (gl-load-identity)
- (gl-ortho 0 width height 0 -1 1))
- (set-gl-matrix-mode (matrix-mode modelview))
- (gl-load-identity)
+ (gl-viewport 0 0 width height))
(gl-clear (clear-buffer-mask color-buffer depth-buffer))
(run-hook draw-hook dt alpha)
(SDL:gl-swap-buffers))