summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-03-25 14:33:47 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-03-25 14:33:47 -0400
commited86ebe80152a21697c98eba9f30586c7ce1a9cf (patch)
treef055a6cff6d172186c2274b6e1084cb92a4054b2
parentc9dda6ab59da70a950127349a3a08688d2dcbcda (diff)
graphics: framebuffer: Adjust for changes to make-texture API.
-rw-r--r--chickadee/graphics/framebuffer.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chickadee/graphics/framebuffer.scm b/chickadee/graphics/framebuffer.scm
index 994668b..bf043da 100644
--- a/chickadee/graphics/framebuffer.scm
+++ b/chickadee/graphics/framebuffer.scm
@@ -33,6 +33,7 @@
#:use-module (chickadee graphics gl)
#:use-module ((chickadee graphics texture) #:select (make-texture null-texture))
#:use-module (chickadee graphics viewport)
+ #:use-module (chickadee pixbuf)
#:export (make-framebuffer
framebuffer?
framebuffer-texture
@@ -104,7 +105,7 @@ dimensions WIDTH x HEIGHT."
(assert-current-graphics-engine)
(let* ((framebuffer-id (generate-framebuffer))
(renderbuffer-id (generate-renderbuffer))
- (texture (make-texture #f width height
+ (texture (make-texture (make-pixbuf width height)
#:flip? #t
#:min-filter min-filter
#:mag-filter mag-filter