diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-02-15 13:15:53 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-02-16 10:46:58 -0500 |
commit | f34f60a7a2e3e96a1c92e1000531589aa97b15fe (patch) | |
tree | 300300c3737340a6490b4df25964f6ccab3b5ec5 | |
parent | 74dd2eb94d8aebe74da9c21bd0175140a6afedb0 (diff) |
Remove calls that change OpenGL matrix mode.
* 2d/game.scm (draw): Remove matrix mode calls.
-rw-r--r-- | 2d/game.scm | 7 |
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)) |