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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user