vulkan: Only log the list of extensions if debugging is enabled
Logging them with `g_print()` will write to stdout, which can interfere with machine-readable output, for example when gnome-control-center displays the GPU/driver name. Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/7093 Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
@@ -577,7 +577,7 @@ physical_device_supports_extension (VkPhysicalDevice device,
|
||||
{
|
||||
first = FALSE;
|
||||
for (uint32_t i = 0; i < n_device_extensions; i++)
|
||||
g_print ("%s\n", extensions[i].extensionName);
|
||||
GDK_DEBUG (VULKAN, "%s", extensions[i].extensionName);
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < n_device_extensions; i++)
|
||||
|
||||
Reference in New Issue
Block a user