summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowStenciller.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-03-10 01:51:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2026-03-10 01:51:38 +0000
commit78b4b043a4fe6be84dd36717c832951a0a464f63 (patch)
treebc82ca1c59d309491323779ebbe3195b4479b546 /gfx/gl/shadowStenciller.cpp
parentSwitch to floating point, camera relative position buffer (diff)
downloadilt-78b4b043a4fe6be84dd36717c832951a0a464f63.tar.bz2
ilt-78b4b043a4fe6be84dd36717c832951a0a464f63.tar.xz
ilt-78b4b043a4fe6be84dd36717c832951a0a464f63.zip
Switch frame and render buffer to DSA helpersHEADmain
Diffstat (limited to 'gfx/gl/shadowStenciller.cpp')
-rw-r--r--gfx/gl/shadowStenciller.cpp6
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);
}