Fix build error in iOS app store build. Also fix a log error.

This commit is contained in:
Henrik Rydgård committed 2026-08-07 18:43:29 +02:00
1 parent cb989b27b2
commit 25532a9b64
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -692,6 +692,11 @@ bool VulkanLoad(std::string *errorStr) {
}
bool VulkanLoadFromGetInstanceProcAddr(VkInstance instance, PFN_vkGetInstanceProcAddr getInstanceProcAddr) {
#if PPSSPP_PLATFORM(IOS_APP_STORE)
// MoltenVK is linked statically, the functions are already there - there are no function pointers to fill in.
INFO_LOG(Log::G3D, "iOS: Vulkan doesn't need loading");
return true;
#else
vkGetInstanceProcAddr = getInstanceProcAddr;
vkCreateInstance = (PFN_vkCreateInstance)getInstanceProcAddr(nullptr, "vkCreateInstance");
// Per the Vulkan spec, vkGetDeviceProcAddr is not one of the handful of commands queryable with a
@@ -709,6 +714,7 @@ bool VulkanLoadFromGetInstanceProcAddr(VkInstance instance, PFN_vkGetInstancePro
ERROR_LOG(Log::G3D, "VulkanLoadFromGetInstanceProcAddr: Failed to load Vulkan base functions");
return false;
}
#endif
}
void VulkanLoadInstanceFunctions(VkInstance instance, const VulkanExtensions &enabledExtensions, uint32_t vulkanInstanceApiVersion) {
+1 -1
View File
@@ -1596,7 +1596,7 @@ void Config::PostLoadCleanup() {
#endif
if (!IsBackendEnabled((GPUBackend)iGPUBackend)) {
ERROR_LOG(Log::G3D, "Backend %d not enabled - switching to platform default");
ERROR_LOG(Log::G3D, "Backend %d not enabled - switching to platform default", iGPUBackend);
iGPUBackend = (int)DefaultGPUBackend();
}