Skip to content

Commit

Permalink
Fix double vkUnmap calls
Browse files Browse the repository at this point in the history
Appears to be missed in f289815. The memory should be mapped and
unmapped by VulkanDeviceMemoryImpl.

Related to #41.

Signed-off-by: Benjamin Cheng <[email protected]>
  • Loading branch information
lolzballs authored and zlatinski committed Apr 5, 2024
1 parent bbec7f6 commit 37b2fa9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/libs/VkCodecUtils/pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,6 @@ void VkFillYuv::fillVkImage(const VulkanDeviceContext* vkDevCtx,

result = vkDevCtx->FlushMappedMemoryRanges(*vkDevCtx, 1u, &range);
ABORT_IF_TRUE(result != VK_SUCCESS);

vkDevCtx->UnmapMemory(*vkDevCtx, mem);
}

} // namespace Pattern

0 comments on commit 37b2fa9

Please sign in to comment.