mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
VulkanMaybeAvailable: Bail earlier in some cases where there's no surface extension.
This commit is contained in:
1 parent
5f2ad2a25e
commit
515bbd28fc
1 file changed
+8
-1
@@ -334,7 +334,9 @@ bool VulkanMayBeAvailable() {
|
||||
ELOG("Enumerating VK extensions failed.");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
for (auto &ext: instanceExts) {
|
||||
ILOG(" %s", ext.extensionName);
|
||||
}
|
||||
if (platformSurfaceExtension) {
|
||||
for (auto iter : instanceExts) {
|
||||
ILOG("VulkanMaybeAvailable: Instance extension found: %s (%08x)", iter.extensionName, iter.specVersion);
|
||||
@@ -352,6 +354,11 @@ bool VulkanMayBeAvailable() {
|
||||
ELOG("Platform surface extension not found");
|
||||
goto bail;
|
||||
}
|
||||
} else {
|
||||
if (!surfaceExtensionFound) {
|
||||
ELOG("Surface extension not found");
|
||||
goto bail;
|
||||
}
|
||||
}
|
||||
// This can't happen unless the driver is double-reporting a surface extension.
|
||||
if (ci.enabledExtensionCount > 2) {
|
||||
|
||||
Reference in new issue
Block a user