]> git.lizzy.rs Git - shadowclad.git/commitdiff
Goddamn clipping planes rendering my crap backwards
authoroutfrost <kotlet.bahn@gmail.com>
Tue, 29 Jan 2019 18:37:10 +0000 (19:37 +0100)
committeroutfrost <kotlet.bahn@gmail.com>
Tue, 29 Jan 2019 18:37:10 +0000 (19:37 +0100)
ui.c

diff --git a/ui.c b/ui.c
index 5010a81e3173655bce8534c3733e96ebc83f2c20..410a2a085efa21f0ed31175debd175efe5cda2d8 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -13,7 +13,7 @@ void resizeStage(GLsizei width, GLsizei height) {
        
        GLfloat aspectRatio = (GLfloat) width / (GLfloat) height;
        
-       glOrtho(-8.0, 8.0, -8.0/aspectRatio, 8.0/aspectRatio, 128.0, -128.0);
+       glOrtho(-8.0, 8.0, -8.0/aspectRatio, 8.0/aspectRatio, -128.0, 128.0);
        
        glRotatef(45.0f, 1.0f, 0.0f, 0.0f);
        glRotatef(45.0f, 0.0f, 1.0f, 0.0f);