mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
GL: Fix depal issue where we forgot to set vp/scissor properly. Update some asserts.
This commit is contained in:
1 parent
bc339c0377
commit
83c82a5ebd
2 files changed
+6
-7
No files matched your search
@@ -135,14 +135,14 @@ size_t VulkanPushBuffer::GetTotalSize() const {
|
||||
}
|
||||
|
||||
void VulkanPushBuffer::Map() {
|
||||
assert(!writePtr_);
|
||||
_dbg_assert_(G3D, !writePtr_);
|
||||
VkResult res = vkMapMemory(device_, buffers_[buf_].deviceMemory, 0, size_, 0, (void **)(&writePtr_));
|
||||
assert(writePtr_);
|
||||
_dbg_assert_(G3D, writePtr_);
|
||||
assert(VK_SUCCESS == res);
|
||||
}
|
||||
|
||||
void VulkanPushBuffer::Unmap() {
|
||||
assert(writePtr_);
|
||||
_dbg_assert_(G3D, writePtr_ != 0);
|
||||
/*
|
||||
// Should not need this since we use coherent memory.
|
||||
VkMappedMemoryRange range{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE };
|
||||
@@ -366,10 +366,7 @@ void VulkanDeviceAllocator::ExecuteFree(FreeInfo *userdata) {
|
||||
}
|
||||
|
||||
// Wrong deviceMemory even? Maybe it was already decimated, but that means a double-free.
|
||||
if (!found) {
|
||||
Crash();
|
||||
}
|
||||
|
||||
_assert_msg_(G3D, found, "ExecuteFree: Block not found (offset %d)", (int)offset);
|
||||
delete userdata;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user