tests: Initialize shader_runner fields after having zeroed the struct.

This commit is contained in:
Giovanni Mascellani 2023-01-30 11:07:45 +01:00 committed by Alexandre Julliard
parent da2435707b
commit 8d7159b4be
Notes: Alexandre Julliard 2023-03-10 21:36:20 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/117

View File

@ -705,8 +705,6 @@ void run_shader_tests(struct shader_runner *runner, int argc, char **argv, const
char line[256];
FILE *f;
runner->minimum_shader_model = SHADER_MODEL_2_0;
for (i = 1; i < argc; ++i)
{
if (argv[i][0] != '-')
@ -730,6 +728,7 @@ void run_shader_tests(struct shader_runner *runner, int argc, char **argv, const
memset(runner, 0, sizeof(*runner));
runner->ops = ops;
runner->minimum_shader_model = SHADER_MODEL_2_0;
for (;;)
{