mirror of https://github.com/godotengine/godot
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:
commit
0eadbdb5d0
|
|
@ -3692,7 +3692,7 @@ void TextureStorage::render_target_do_clear_request(RID p_render_target) {
|
||||||
}
|
}
|
||||||
Vector<Color> clear_colors;
|
Vector<Color> clear_colors;
|
||||||
clear_colors.push_back(rt->use_hdr ? rt->clear_color.srgb_to_linear() : rt->clear_color);
|
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();
|
RD::get_singleton()->draw_list_end();
|
||||||
rt->clear_requested = false;
|
rt->clear_requested = false;
|
||||||
rt->msaa_needs_resolve = false;
|
rt->msaa_needs_resolve = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue