summaryrefslogtreecommitdiff
path: root/chickadee/render/texture.scm
diff options
context:
space:
mode:
Diffstat (limited to 'chickadee/render/texture.scm')
-rw-r--r--chickadee/render/texture.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/render/texture.scm b/chickadee/render/texture.scm
index 0c4480b..34be3fe 100644
--- a/chickadee/render/texture.scm
+++ b/chickadee/render/texture.scm
@@ -248,7 +248,7 @@ measured in pixels and must be integers."
(let* ((tw (texture-width texture))
(th (texture-height texture))
(gl-rect (make-rect (/ x tw) (/ y th)
- (/ (+ x width) tw) (/ (+ y height) th))))
+ (/ width tw) (/ height th))))
(%make-texture-region texture x y width height gl-rect
(f32vector width height))))