summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2016-02-08 16:15:45 -0500
committerDavid Thompson <dthompson2@worcester.edu>2016-02-10 22:01:38 -0500
commit7cc965f26374c880ba129923438b1e4b39ac8f7e (patch)
tree677a870d0349ad69e40464f46b89222f599706f9
parent14ea7b336cb8ac0829dee207733cff7a5df7cbe8 (diff)
render: framebuffer: Use the null texture within the null framebuffer.
* sly/render/framebuffer.scm (null-framebuffer): Set texture to the null texture, rather than #f.
-rw-r--r--sly/render/framebuffer.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/sly/render/framebuffer.scm b/sly/render/framebuffer.scm
index e533f7a..ed3f253 100644
--- a/sly/render/framebuffer.scm
+++ b/sly/render/framebuffer.scm
@@ -28,6 +28,7 @@
#:use-module (gl)
#:use-module (gl low-level)
#:use-module (gl enums)
+ #:use-module (sly render texture)
#:use-module (sly wrappers gl)
#:export (make-framebuffer
framebuffer?
@@ -57,7 +58,7 @@
(texture framebuffer-texture))
(define null-framebuffer
- (%make-framebuffer 0 0 #f))
+ (%make-framebuffer 0 0 null-texture))
(define (framebuffer-null? framebuffer)
"Return #t if FRAMEBUFFER is the null framebuffer."