mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
vkd3d: Warn about missing extensions only when meaningful.
This commit is contained in:
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
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user