summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-03-25 11:53:43 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-03-25 11:53:43 -0400
commit58acb5b6b1fa5150822cf8cb6cea7ec6dbbd32c1 (patch)
tree46d95f876bd6c88ddb2ccc7128bf4deb413da94e
parentce655168b7e5989b09ed1f1c4ca313636db0b871 (diff)
Add stencil buffer to framebuffer.
-rw-r--r--chickadee/graphics/framebuffer.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/chickadee/graphics/framebuffer.scm b/chickadee/graphics/framebuffer.scm
index d030f41..994668b 100644
--- a/chickadee/graphics/framebuffer.scm
+++ b/chickadee/graphics/framebuffer.scm
@@ -128,11 +128,12 @@ dimensions WIDTH x HEIGHT."
(gl-bind-renderbuffer (version-3-0 renderbuffer)
renderbuffer-id)
(gl-renderbuffer-storage (version-3-0 renderbuffer)
- (pixel-format depth-component)
+ (arb-framebuffer-object depth24-stencil8)
width
height)
+ (gl-bind-renderbuffer (version-3-0 renderbuffer) 0)
(gl-framebuffer-renderbuffer (version-3-0 framebuffer)
- (arb-framebuffer-object depth-attachment)
+ (arb-framebuffer-object depth-stencil-attachment)
(version-3-0 renderbuffer)
renderbuffer-id)
;; Setup framebuffer.