summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/graphics/texture.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/chickadee/graphics/texture.scm b/chickadee/graphics/texture.scm
index 24d6140..ba6cb62 100644
--- a/chickadee/graphics/texture.scm
+++ b/chickadee/graphics/texture.scm
@@ -23,7 +23,7 @@
#:use-module (srfi srfi-9 gnu)
#:use-module (system foreign)
#:use-module (gl)
- #:use-module (gl enums)
+ #:use-module ((gl enums) #:prefix gl:)
#:use-module ((sdl2 surface) #:prefix sdl2:)
#:use-module (oop goops)
#:use-module (chickadee math rect)
@@ -159,13 +159,13 @@ clamp-to-edge. FORMAT specifies the pixel format. Currently only
(gl-texture-parameter (texture-target texture-2d)
(texture-parameter-name texture-min-filter)
(match min-filter
- ('nearest 9728)
- ('linear 9729)))
+ ('nearest (gl:texture-min-filter nearest))
+ ('linear (gl:texture-min-filter linear))))
(gl-texture-parameter (texture-target texture-2d)
(texture-parameter-name texture-mag-filter)
(match mag-filter
- ('nearest 9728)
- ('linear 9729)))
+ ('nearest (gl:texture-mag-filter nearest))
+ ('linear (gl:texture-mag-filter linear))))
(gl-texture-parameter (texture-target texture-2d)
(texture-parameter-name texture-wrap-s)
(gl-wrap wrap-s))