render: texture: Fix bug in framebuffer texture coordinates.
authorDavid Thompson <dthompson2@worcester.edu>
Tue, 11 Sep 2018 01:40:56 +0000 (21:40 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Tue, 11 Sep 2018 01:40:56 +0000 (21:40 -0400)
* chickadee/render/texture.scm (make-texture): Don't flip texture
horizontally, only vertically.

chickadee/render/texture.scm

index e37e4ec..3b1cb04 100644 (file)
@@ -169,7 +169,7 @@ clamp-to-edge.  FORMAT specifies the pixel format.  Currently only
                                  0 0 width height
                                  (make-rect 0.0 0.0 width height)
                                  (if flip?
-                                     (make-rect 1.0 1.0 -1.0 -1.0)
+                                     (make-rect 0.0 1.0 1.0 -1.0)
                                      (make-rect 0.0 0.0 1.0 1.0))))))
     (texture-set! 0 texture)
     (gl-texture-parameter (texture-target texture-2d)