diff options
-rw-r--r-- | chickadee/graphics/framebuffer.scm | 5 |
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. |