diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-10 01:51:38 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-10 01:51:38 +0000 |
| commit | 78b4b043a4fe6be84dd36717c832951a0a464f63 (patch) | |
| tree | bc82ca1c59d309491323779ebbe3195b4479b546 /gfx/gl/shadowStenciller.cpp | |
| parent | Switch to floating point, camera relative position buffer (diff) | |
| download | ilt-78b4b043a4fe6be84dd36717c832951a0a464f63.tar.bz2 ilt-78b4b043a4fe6be84dd36717c832951a0a464f63.tar.xz ilt-78b4b043a4fe6be84dd36717c832951a0a464f63.zip | |
Diffstat (limited to 'gfx/gl/shadowStenciller.cpp')
| -rw-r--r-- | gfx/gl/shadowStenciller.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gfx/gl/shadowStenciller.cpp b/gfx/gl/shadowStenciller.cpp index cafae02..9d43fdc 100644 --- a/gfx/gl/shadowStenciller.cpp +++ b/gfx/gl/shadowStenciller.cpp @@ -53,10 +53,8 @@ ShadowStenciller::renderStencil( { glDebugScope _ {fbo}; glBindFramebuffer(GL_FRAMEBUFFER, fbo); - glFramebufferTexture(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, stencil, 0); - if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) { - throw std::runtime_error("Stencil framebuffer not complete!"); - } + fbo.texture(GL_DEPTH_ATTACHMENT, stencil); + fbo.assertComplete(); if (texture) { texture->bind(0); } |
