1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -3542,6 +3542,10 @@ void TextureStorage::_clear_render_target(RenderTarget *rt) {
}
void TextureStorage::_update_render_target(RenderTarget *rt) {
if (rt->overridden.color.is_valid()) {
return;
}
if (rt->texture.is_null()) {
//create a placeholder until updated
rt->texture = texture_allocate();