diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-09-10 21:40:56 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-09-10 21:40:56 -0400 |
commit | b69cdffb9e86e62325b8bc5560162b044b8b30b6 (patch) | |
tree | 6945337a604991c49718819c42e2bf1886ea9ce7 | |
parent | 1a344160d425f54b23c2235a31b4d6ab352d9131 (diff) |
render: texture: Fix bug in framebuffer texture coordinates.
* chickadee/render/texture.scm (make-texture): Don't flip texture
horizontally, only vertically.
-rw-r--r-- | chickadee/render/texture.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/render/texture.scm b/chickadee/render/texture.scm index e37e4ec..3b1cb04 100644 --- a/chickadee/render/texture.scm +++ b/chickadee/render/texture.scm @@ -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) |