mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/shader_runner: Skip the GLSL tests when GLSL support is not enabled.
This commit is contained in:
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
@ -242,6 +242,15 @@ static bool gl_runner_init(struct gl_runner *runner, enum shading_language langu
|
||||
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));
|
||||
runner->language = language;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user