mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-25 03:09:13 +01:00
Turn off annoying "debug flicker" I used to see if we were swapping buffers properly early on
Also minor logging changes, refine the false-positive debug layer check
This commit is contained in:
1 parent
79fd828d16
commit
575cc890b7
3 files changed
+12
-5
No files matched your search
@@ -110,14 +110,18 @@ VulkanContext::VulkanContext(const char *app_name, int app_ver, uint32_t flags)
|
||||
|
||||
VkResult res = vkCreateInstance(&inst_info, NULL, &instance_);
|
||||
if (res != VK_SUCCESS) {
|
||||
ELOG("Failed to create instance: %d", res);
|
||||
if (res == VK_ERROR_LAYER_NOT_PRESENT) {
|
||||
WLOG("Validation on but layers not available - dropping layers");
|
||||
// Drop the validation layers and try again.
|
||||
instance_layer_names.clear();
|
||||
device_layer_names.clear();
|
||||
inst_info.enabledLayerCount = 0;
|
||||
inst_info.ppEnabledLayerNames = NULL;
|
||||
res = vkCreateInstance(&inst_info, NULL, &instance_);
|
||||
if (res != VK_SUCCESS)
|
||||
ELOG("Failed to create instance even without validation: %d", res);
|
||||
} else {
|
||||
ELOG("Failed to create instance : %d", res);
|
||||
}
|
||||
}
|
||||
assert(res == VK_SUCCESS);
|
||||
|
||||
Reference in new issue
Block a user