mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Fix build error in iOS app store build. Also fix a log error.
This commit is contained in:
1 parent
cb989b27b2
commit
25532a9b64
2 files changed
+7
-1
No files matched your search
@@ -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
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user