OpenXR: Fix resizing viewports used by OpenXRCompositionLayer

This commit is contained in:
David Snopek 2025-10-30 17:40:52 -05:00
parent c0c1c68562
commit ca0eb5da24
5 changed files with 30 additions and 6 deletions

View file

@ -2933,9 +2933,11 @@ void TextureStorage::render_target_set_msaa(RID p_render_target, RS::ViewportMSA
WARN_PRINT("2D MSAA is not yet supported for GLES3.");
_clear_render_target(rt);
rt->msaa = p_msaa;
_update_render_target_color(rt);
if (rt->overridden.color.is_null()) {
_clear_render_target(rt);
rt->msaa = p_msaa;
_update_render_target_color(rt);
}
}
RS::ViewportMSAA TextureStorage::render_target_get_msaa(RID p_render_target) const {
@ -2953,9 +2955,11 @@ void TextureStorage::render_target_set_use_hdr(RID p_render_target, bool p_use_h
return;
}
_clear_render_target(rt);
rt->hdr = p_use_hdr_2d;
_update_render_target_color(rt);
if (rt->overridden.color.is_null()) {
_clear_render_target(rt);
rt->hdr = p_use_hdr_2d;
_update_render_target_color(rt);
}
}
bool TextureStorage::render_target_is_using_hdr(RID p_render_target) const {