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; }