From 8d7159b4be7b971b3362582ce415677d6cdbea17 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Mon, 30 Jan 2023 11:07:45 +0100 Subject: [PATCH] tests: Initialize shader_runner fields after having zeroed the struct. --- tests/shader_runner.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/shader_runner.c b/tests/shader_runner.c index 507fbdaf..80249dfe 100644 --- a/tests/shader_runner.c +++ b/tests/shader_runner.c @@ -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 (;;) {