summaryrefslogtreecommitdiff
path: root/gdk/gdkvulkancontext.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-11 08:53:57 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-14 17:05:04 -0500
commitc5fc841285f9ab7939e7f1a01146780b47c4be3b (patch)
treefc7bc8ddeb228fccb05a04dcc33fc82edfa076f4 /gdk/gdkvulkancontext.c
parentaf7f69506882b92187bbdea21a62753903114392 (diff)
downloadgtk+-c5fc841285f9ab7939e7f1a01146780b47c4be3b.tar.gz
gdk: Reorganize env vars
Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE. Merge the useful bits into GDK_DEBUG. Drop unused debug flags (CURSOR).
Diffstat (limited to 'gdk/gdkvulkancontext.c')
-rw-r--r--gdk/gdkvulkancontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 1c4e7906b0..72657f2ef5 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -941,7 +941,7 @@ gdk_display_create_vulkan_instance (GdkDisplay *display,
VK_VERSION_MINOR (layers[i].specVersion),
VK_VERSION_PATCH (layers[i].specVersion),
layers[i].description));
- if ((_gdk_vulkan_flags & GDK_VULKAN_VALIDATE) &&
+ if (GDK_DEBUG_CHECK (VULKAN_VALIDATE) &&
g_str_equal (layers[i].layerName, "VK_LAYER_LUNARG_standard_validation"))
{
g_ptr_array_add (used_layers, (gpointer) "VK_LAYER_LUNARG_standard_validation");
@@ -949,7 +949,7 @@ gdk_display_create_vulkan_instance (GdkDisplay *display,
}
}
- if ((_gdk_vulkan_flags & GDK_VULKAN_VALIDATE) && !validate)
+ if (GDK_DEBUG_CHECK (VULKAN_VALIDATE) && !validate)
{
g_warning ("Vulkan validation layers were requested, but not found. Running without.");
}