Skip to content

Commit ddfa84a

Browse files
committed
Set GL_DEPTH_BUFFER_BIT when blitting the depth buffer to the screen.
(Fixes a copy-paste bug, previously the GL_STENCIL_BUFFER_BIT was being set.)
1 parent 6740b43 commit ddfa84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderpass_gl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void RenderPass::blit_to(const Vector2i &src_offset,
346346
target_id = 0;
347347
what = GL_COLOR_BUFFER_BIT;
348348
if (screen->has_depth_buffer() && m_targets[0])
349-
what |= GL_STENCIL_BUFFER_BIT;
349+
what |= GL_DEPTH_BUFFER_BIT;
350350
if (screen->has_stencil_buffer() && m_targets[1])
351351
what |= GL_STENCIL_BUFFER_BIT;
352352
} else if (rp) {

0 commit comments

Comments
 (0)