Skip to content

Commit

Permalink
get_render_target_texture for openvr.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Sep 19, 2021
1 parent b1063a7 commit 5e9d0c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions servers/xr/xr_interface_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,11 @@ void XRInterfaceExtension::notification(int p_what) {
}

RID XRInterfaceExtension::get_render_target_texture(RID p_render_target) {
RendererStorage *storage = RSG::storage;
ERR_FAIL_NULL_V_MSG(storage, RID(), "Renderer storage not setup");
// This needs to be implemented in a better way I guess...
RendererStorage * rd_storage = RendererStorage::base_singleton;
ERR_FAIL_NULL_V_MSG(rd_storage, RID(), "Renderer storage not setup");

return storage->render_target_get_texture(p_render_target);
return rd_storage->render_target_get_texture(p_render_target);
}

/*
Expand Down

0 comments on commit 5e9d0c3

Please sign in to comment.