mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08: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
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user