Removed unnecessary clears

This commit is contained in:
korenkonder
2023-12-09 09:02:29 +03:00
parent f4f5c5157f
commit d0f711924b
+5 -6
View File
@@ -446,12 +446,11 @@ namespace rndr {
shad->curr_render_textures[1] = &shad->render_textures[1];
shad->curr_render_textures[2] = &shad->render_textures[2];
for (int32_t i = 1; i < 3; i++)
for (int32_t j = 0; j < 4; j++) {
shad->curr_render_textures[i]->Bind(j);
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
}
for (int32_t i = 1; i < 3; i++) {
shad->curr_render_textures[i]->Bind();
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
}
}
shader::unbind();
gl_state_bind_framebuffer(0);