build: Don't enable vulkan without glslc

We need glslc to compile the shaders.

Fixes: #6846
This commit is contained in:
Matthias Clasen 2024-07-10 12:27:02 -04:00
parent bd3e596243
commit 73b2913be3

View File

@ -626,7 +626,7 @@ vulkan_dep = dependency('vulkan',
version: vulkan_req,
required: vulkan_enabled)
glslc = find_program('glslc', required: vulkan_enabled)
if vulkan_dep.found()
if vulkan_dep.found() and glslc.found()
have_vulkan = true
vulkan_pkg_found = vulkan_dep.type_name() == 'pkgconfig'
else