Fix the configure check for Vulkan

GDK_WINDOWING_VULKAN was getting defined regardless of the tests.
This commit is contained in:
Matthias Clasen
2016-12-09 14:00:48 -05:00
parent f52dd12569
commit 17c8ebc4a8

View File

@@ -1325,7 +1325,7 @@ if test "x$enable_vulkan" != "xno"; then
vulkan_error=""
AC_CHECK_HEADER([vulkan/vulkan.h], [], [vulkan_error="Vulkan header not found"])
AC_CHECK_LIB([vulkan], [vkCreateInstance], [], [vulkan_error="Vulkan library not found"])
if test "x$vulkan_result" != "x"; then
if test "x$vulkan_error" != "x"; then
if "x$enable_vulkan" = "xyes"; then
AC_MSG_ERROR($vulkan_error)
else