Add a way to pass out error messages from VulkanLoad

This commit is contained in:
Henrik Rydgård committed 2024-01-15 11:22:33 +01:00
1 parent ddeb2112cc
commit 0caebbfaa6
6 files changed
+25 -16

No files matched your search

+3 -2
View File
@@ -52,8 +52,9 @@ bool AndroidVulkanContext::InitAPI() {
INFO_LOG(G3D, "Creating Vulkan context");
Version gitVer(PPSSPP_GIT_VERSION);
if (!VulkanLoad()) {
ERROR_LOG(G3D, "Failed to load Vulkan driver library");
std::string errorStr;
if (!VulkanLoad(&errorStr)) {
ERROR_LOG(G3D, "Failed to load Vulkan driver library: %s", errorStr.c_str());
state_ = GraphicsContextState::FAILED_INIT;
return false;
}