Vulkan: Prepare for adding a second init path for VulkanContext.

Will eventually be used for libretro.
This commit is contained in:
Henrik Rydgård committed 2019-09-01 22:21:19 +02:00
1 parent 5847bf3201
commit 7610220b30
5 files changed
+31 -27

No files matched your search

+7
View File
@@ -92,9 +92,16 @@ bool AndroidVulkanContext::InitAPI() {
ILOG("Creating Vulkan context");
Version gitVer(PPSSPP_GIT_VERSION);
if (!VulkanLoad()) {
ELOG("Failed to load Vulkan driver library");
return false;
}
if (!g_Vulkan) {
// TODO: Assert if g_Vulkan already exists here?
g_Vulkan = new VulkanContext();
}
VulkanContext::CreateInfo info{};
info.app_name = "PPSSPP";
info.app_ver = gitVer.ToInteger();