mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
OpenXR: Fix resizing viewports used by OpenXRCompositionLayer
This commit is contained in:
parent
c0c1c68562
commit
ca0eb5da24
5 changed files with 30 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue