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
|
|
@ -232,6 +232,8 @@ void OpenXRCompositionLayerExtension::CompositionLayer::set_viewport(RID p_viewp
|
|||
free_swapchain();
|
||||
subviewport.viewport_size = Size2i();
|
||||
}
|
||||
} else if (subviewport.viewport_size != p_size) {
|
||||
subviewport.viewport_size = p_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue