From 29c63906bc59f5adb935974fb76e1751f9e588a6 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Sun, 5 May 2024 11:27:27 +0200 Subject: [PATCH] vkd3d: Warn about missing extensions only when meaningful. --- libs/vkd3d/device.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 3f3332dd..5ba201ac 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -272,13 +272,15 @@ static bool has_extension(const VkExtensionProperties *extensions, for (i = 0; i < count; ++i) { - if (is_extension_disabled(extension_name)) - { - WARN("Extension %s is disabled.\n", debugstr_a(extension_name)); - continue; - } if (!strcmp(extensions[i].extensionName, extension_name)) + { + if (is_extension_disabled(extension_name)) + { + WARN("Extension %s is disabled.\n", debugstr_a(extension_name)); + return false; + } return true; + } } return false; }