mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Vulkan: Prepare for adding a second init path for VulkanContext.
Will eventually be used for libretro.
This commit is contained in:
1 parent
5847bf3201
commit
7610220b30
5 files changed
+31
-27
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user