Skip to content

Commit

Permalink
Merge pull request #99788 from DarioSamo/2d-texture-texture-draw-list…
Browse files Browse the repository at this point in the history
…-fix

Fix another incorrect clear color flag on texture storage.
  • Loading branch information
akien-mga authored Nov 28, 2024
2 parents 9aed9ec + c7198dd commit 0eadbdb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3692,7 +3692,7 @@ void TextureStorage::render_target_do_clear_request(RID p_render_target) {
}
Vector<Color> clear_colors;
clear_colors.push_back(rt->use_hdr ? rt->clear_color.srgb_to_linear() : rt->clear_color);
RD::get_singleton()->draw_list_begin(rt->get_framebuffer(), RD::DRAW_CLEAR_ALL, clear_colors);
RD::get_singleton()->draw_list_begin(rt->get_framebuffer(), RD::DRAW_CLEAR_COLOR_0, clear_colors);
RD::get_singleton()->draw_list_end();
rt->clear_requested = false;
rt->msaa_needs_resolve = false;
Expand Down

0 comments on commit 0eadbdb

Please sign in to comment.