mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #112227 from dsnopek/openxr-composition-layers-viewport-size-changed
OpenXR: Fix resizing viewports used by `OpenXRCompositionLayer`
This commit is contained in:
commit
fd672dbcfc
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