tests/shader_runner: Skip the GLSL tests when GLSL support is not enabled.

This commit is contained in:
Francisco Casas 2024-09-23 12:48:30 -03:00 committed by Henri Verbeet
parent f37be27bdc
commit 94af1754dd
Notes: Henri Verbeet 2024-09-24 14:11:16 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1109

View File

@ -242,6 +242,15 @@ static bool gl_runner_init(struct gl_runner *runner, enum shading_language langu
DXGI_FORMAT_R32G32B32A32_SINT, DXGI_FORMAT_R32G32B32A32_SINT,
}; };
#ifndef VKD3D_SHADER_UNSUPPORTED_GLSL
if (language == GLSL)
{
skip("GLSL support is not enabled. If this is unintentional, "
"add -DVKD3D_SHADER_UNSUPPORTED_GLSL to CPPFLAGS.\n");
return false;
}
#endif
memset(runner, 0, sizeof(*runner)); memset(runner, 0, sizeof(*runner));
runner->language = language; runner->language = language;