Matteo Bruni : tests: Initialize current_texture variable.

Alexandre Julliard julliard at winehq.org
Tue Nov 9 15:54:33 CST 2021


Module: vkd3d
Branch: master
Commit: 9c645bb1f693e227cf0908c51bf937d65ac95d06
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=9c645bb1f693e227cf0908c51bf937d65ac95d06

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Fri Nov  5 19:35:48 2021 +0100

tests: Initialize current_texture variable.

It avoids a compiler warning for me. There is no actual issue though.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tests/shader_runner_d3d12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/shader_runner_d3d12.c b/tests/shader_runner_d3d12.c
index a17a171..20d1ad6 100644
--- a/tests/shader_runner_d3d12.c
+++ b/tests/shader_runner_d3d12.c
@@ -511,9 +511,9 @@ START_TEST(shader_runner_d3d12)
         .rt_format = DXGI_FORMAT_R32G32B32A32_FLOAT,
     };
     size_t shader_source_size = 0, shader_source_len = 0;
+    struct texture *current_texture = NULL;
     enum parse_state state = STATE_NONE;
     unsigned int i, line_number = 0;
-    struct texture *current_texture;
     struct shader_context context;
     const char *filename = NULL;
     char *shader_source = NULL;




More information about the wine-cvs mailing list