Skip to content

Commit

Permalink
fix(utils::swapchain): fix HasBackBufferRenderTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Aug 25, 2024
1 parent 17f8c9e commit 641694e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/swapchain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static bool HasBackBufferRenderTarget(reshade::api::command_list* cmd_list) {
bool found_swapchain_rtv = false;
for (uint32_t i = 0; i < count; i++) {
const reshade::api::resource_view rtv = cmd_list_data.current_render_targets[i];
auto resource = renodx::utils::resource::GetResourceFromResourceView(device, rtv);
auto resource = device->get_resource_from_view(rtv);
if ((resource.handle != 0u) && device_data.back_buffers.contains(resource.handle)) {
found_swapchain_rtv = true;
break;
Expand Down

0 comments on commit 641694e

Please sign in to comment.