Merge pull request #99788 from DarioSamo/2d-texture-texture-draw-list-fix

Fix another incorrect clear color flag on texture storage.
This commit is contained in:
Rémi Verschelde 2024-11-28 15:08:33 +01:00 committed by GitHub
commit 0eadbdb5d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;