From 9112ac8bdca52d9e1d47730c98a27399558311da Mon Sep 17 00:00:00 2001 From: Eidolon Date: Sat, 8 Jul 2023 16:51:39 -0500 Subject: [PATCH] rhi/gl: Clear stencil buffer in default renderpass --- src/rhi/gl3_core/gl3_core_rhi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rhi/gl3_core/gl3_core_rhi.cpp b/src/rhi/gl3_core/gl3_core_rhi.cpp index 5f3bda3b5..b8144788f 100644 --- a/src/rhi/gl3_core/gl3_core_rhi.cpp +++ b/src/rhi/gl3_core/gl3_core_rhi.cpp @@ -1226,7 +1226,7 @@ void GlCoreRhi::begin_default_render_pass(Handle ctx, bool clea gl_->ClearColor(0.0f, 0.0f, 0.0f, 1.0f); gl_->ClearDepth(1.0f); gl_->ClearStencil(0); - gl_->Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + gl_->Clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); GL_ASSERT; }