vkd3d: Warn about missing extensions only when meaningful.

This commit is contained in:
Giovanni Mascellani 2024-05-05 11:27:27 +02:00 committed by Alexandre Julliard
parent d6b1e62ffc
commit 29c63906bc
Notes: Alexandre Julliard 2024-05-08 22:52:26 +02:00
Approved-by: Conor McCarthy (@cmccarthy)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/852

View File

@ -271,15 +271,17 @@ static bool has_extension(const VkExtensionProperties *extensions,
unsigned int i; unsigned int i;
for (i = 0; i < count; ++i) for (i = 0; i < count; ++i)
{
if (!strcmp(extensions[i].extensionName, extension_name))
{ {
if (is_extension_disabled(extension_name)) if (is_extension_disabled(extension_name))
{ {
WARN("Extension %s is disabled.\n", debugstr_a(extension_name)); WARN("Extension %s is disabled.\n", debugstr_a(extension_name));
continue; return false;
} }
if (!strcmp(extensions[i].extensionName, extension_name))
return true; return true;
} }
}
return false; return false;
} }