[PATCH vkd3d v3 04/14] tests: Initialize current_texture variable.

Giovanni Mascellani gmascellani at codeweavers.com
Mon Nov 8 02:20:01 CST 2021


Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>

On 05/11/21 19:35, Matteo Bruni wrote:
> It avoids a compiler warning for me. There is no actual issue though.
> 
> Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
> ---
>   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 a17a171e..20d1ad6a 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-devel mailing list