Skip to content
Snippets Groups Projects
Commit 29c63906 authored by Giovanni Mascellani's avatar Giovanni Mascellani Committed by Alexandre Julliard
Browse files

vkd3d: Warn about missing extensions only when meaningful.

parent d6b1e62f
No related branches found
No related tags found
1 merge request!852vkd3d: Only request properties and features when the corresponding extension is available.
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment