mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-02 19:58:01 +03:00
Removed unnecessary clears
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user