You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix another incorrect clear color flag on texture storage.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user