Skip to content

Commit

Permalink
fix(mods::swapchain): ignore OnCopyTextureRegion if not cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Dec 9, 2024
1 parent df8a826 commit 08452d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mods/swapchain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,8 @@ static bool OnCopyTextureRegion(
auto source_clone = GetResourceClone(device, &data, source);
auto dest_clone = GetResourceClone(device, &data, dest);

if (source_clone.handle == 0u && dest_clone.handle == 0u) return false;

if (source_clone.handle != 0u) {
source_desc = device->get_resource_desc(source_clone);

Expand Down

0 comments on commit 08452d5

Please sign in to comment.