From f38f302a49565c993d13d9d00eb409bff7506777 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 30 Apr 2021 08:17:32 -0400 Subject: graphics: texture: Import (sdl2 image) the right way. --- chickadee/graphics/texture.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chickadee/graphics/texture.scm b/chickadee/graphics/texture.scm index 6debd11..94ce546 100644 --- a/chickadee/graphics/texture.scm +++ b/chickadee/graphics/texture.scm @@ -24,6 +24,7 @@ #:use-module (system foreign) #:use-module (gl) #:use-module ((gl enums) #:prefix gl:) + #:use-module ((sdl2 image) #:prefix sdl2:) #:use-module ((sdl2 surface) #:prefix sdl2:) #:use-module (chickadee math rect) #:use-module (chickadee graphics color) @@ -282,7 +283,7 @@ the given MIN-FILTER and MAG-FILTER." describe the method that should be used for minification and magnification. Valid values are 'nearest and 'linear. By default, 'nearest is used." - (sdl2:call-with-surface ((@ (sdl2 image) load-image) file) + (sdl2:call-with-surface (sdl2:load-image file) (lambda (surface) (surface->texture surface min-filter mag-filter wrap-s wrap-t transparent-color)))) -- cgit v1.2.3