summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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