mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Vulkan: Don't bother with extra userdata, comments.
Was a failed attempt to avoid new/delete.
This commit is contained in:
1 parent
bd7c431532
commit
9921fd2ea7
3 files changed
+23
-14
No files matched your search
@@ -228,8 +228,8 @@ void VulkanDeviceAllocator::Free(VkDeviceMemory deviceMemory, size_t offset) {
|
||||
}
|
||||
|
||||
// Okay, now enqueue. It's valid.
|
||||
FreeInfo *info = new FreeInfo(deviceMemory, offset);
|
||||
vulkan_->Delete().QueueCallback(&DispatchFree, this, info);
|
||||
FreeInfo *info = new FreeInfo(this, deviceMemory, offset);
|
||||
vulkan_->Delete().QueueCallback(&DispatchFree, info);
|
||||
}
|
||||
|
||||
void VulkanDeviceAllocator::ExecuteFree(FreeInfo *userdata) {
|
||||
|
||||
Reference in new issue
Block a user