1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Clear stencil, if added.

This commit is contained in:
Thomas Harte
2026-02-05 22:50:21 -05:00
parent 2783f67dfd
commit 90b86d78e5
+1 -1
View File
@@ -88,7 +88,7 @@ TextureTarget::TextureTarget(
}
// Clear the framebuffer.
test_gl([&]{ glClear(GL_COLOR_BUFFER_BIT); });
test_gl([&]{ glClear(GL_COLOR_BUFFER_BIT | (has_stencil_buffer ? GL_STENCIL_BUFFER_BIT : 0)); });
}
TextureTarget::~TextureTarget() {