Commit 438ad208 authored by Matthias Clasen's avatar Matthias Clasen

Use the new defines

It is no longer GDK_WINDOWING_VULKAN.
parent cb8483b0
......@@ -56,7 +56,7 @@
#ifdef GDK_WINDOWING_WAYLAND
#include <gdk/wayland/gdkwayland.h>
#endif
#ifdef GDK_WINDOWING_VULKAN
#ifdef GDK_RENDERING_VULKAN
#include "gskvulkanrendererprivate.h"
#endif
......@@ -728,7 +728,7 @@ get_renderer_for_env_var (GdkWindow *window)
else if (g_ascii_strcasecmp (renderer_name, "opengl") == 0
|| g_ascii_strcasecmp (renderer_name, "gl") == 0)
env_var_type = GSK_TYPE_GL_RENDERER;
#ifdef GDK_WINDOWING_VULKAN
#ifdef GDK_RENDERING_VULKAN
else if (g_ascii_strcasecmp (renderer_name, "vulkan") == 0)
env_var_type = GSK_TYPE_VULKAN_RENDERER;
#endif
......@@ -737,7 +737,9 @@ get_renderer_for_env_var (GdkWindow *window)
g_print ("Supported arguments for GSK_RENDERER environment variable:\n");
g_print (" cairo - Use the Cairo fallback renderer\n");
g_print (" opengl - Use the default OpenGL renderer\n");
g_print (" vulkan - Use the Vulkan renderer (available if GTK is compiled with Vulkan support)\n");
#ifdef GDK_RENDERING_VULKAN
g_print (" vulkan - Use the Vulkan renderer\n");
#endif
g_print (" help - Print this help\n\n");
g_print ("Other arguments will cause a warning and be ignored.\n");
env_var_type = G_TYPE_INVALID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment