diff options
author | Clay John <claynjohn@gmail.com> | 2022-04-18 21:27:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-18 21:27:46 -0700 |
commit | 1d2177938df078dae7be87665b7caf27c123cd38 (patch) | |
tree | b455124448f7cf5e50929aeec2803514b3d89e74 /modules | |
parent | 59059931916182b54b87b53481de8907081a887a (diff) | |
parent | 0b4fd92a17bd2dc382f26dafaa650f915231747d (diff) |
Merge pull request #59984 from BastiaanOlij/more_storage_20220407
More work on splitting up RendererStorage
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openxr/extensions/openxr_vulkan_extension.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/openxr/extensions/openxr_vulkan_extension.cpp b/modules/openxr/extensions/openxr_vulkan_extension.cpp index 8736296f7a..1eb7635a82 100644 --- a/modules/openxr/extensions/openxr_vulkan_extension.cpp +++ b/modules/openxr/extensions/openxr_vulkan_extension.cpp @@ -34,6 +34,7 @@ #include "../openxr_api.h" #include "../openxr_util.h" #include "servers/rendering/renderer_rd/renderer_storage_rd.h" +#include "servers/rendering/renderer_rd/storage_rd/texture_storage.h" #include "servers/rendering/rendering_server_globals.h" #include "servers/rendering_server.h" @@ -439,7 +440,7 @@ bool OpenXRVulkanExtension::copy_render_target_to_image(RID p_from_render_target ERR_FAIL_COND_V(p_from_render_target.is_null(), false); ERR_FAIL_NULL_V(RendererStorageRD::base_singleton, false); - RID source_image = RendererStorageRD::base_singleton->render_target_get_rd_texture(p_from_render_target); + RID source_image = RendererRD::TextureStorage::get_singleton()->render_target_get_rd_texture(p_from_render_target); ERR_FAIL_COND_V(source_image.is_null(), false); RID depth_image; // TODO implement |