mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Fix message asserts on Android. Add more of them to check things in Vulkan code.
This commit is contained in:
1 parent
7ab403e320
commit
27a60f5e58
9 files changed
+55
-83
No files matched your search
@@ -44,6 +44,7 @@ bool VulkanPushBuffer::AddBuffer() {
|
||||
|
||||
VkResult res = vkCreateBuffer(device_, &b, nullptr, &info.buffer);
|
||||
if (VK_SUCCESS != res) {
|
||||
ELOG("vkCreateBuffer failed! result=%d", (int)res);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -60,10 +61,15 @@ bool VulkanPushBuffer::AddBuffer() {
|
||||
|
||||
res = vkAllocateMemory(device_, &alloc, nullptr, &info.deviceMemory);
|
||||
if (VK_SUCCESS != res) {
|
||||
ELOG("vkAllocateMemory failed! result=%d", (int)res);
|
||||
vkDestroyBuffer(device_, info.buffer, nullptr);
|
||||
return false;
|
||||
}
|
||||
res = vkBindBufferMemory(device_, info.buffer, info.deviceMemory, 0);
|
||||
if (VK_SUCCESS != res) {
|
||||
ELOG("vkBindBufferMemory failed! result=%d", (int)res);
|
||||
vkFreeMemory(device_, info.deviceMemory, nullptr);
|
||||
vkDestroyBuffer(device_, info.buffer, nullptr);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user