vkd3d-shader: Use struct vkd3d_shader_location in struct hlsl_ctx.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-02-12 10:48:56 -06:00
committed by Alexandre Julliard
parent 3a975c2215
commit 3bf0e40b9d
4 changed files with 14 additions and 18 deletions

View File

@@ -1762,8 +1762,8 @@ preproc_directive:
const char **new_array = NULL;
TRACE("Updating line information to file %s, line %u.\n", debugstr_a($2), $1);
ctx->line_no = $1;
if (strcmp($2, ctx->source_file))
ctx->location.line = $1;
if (strcmp($2, ctx->location.source_name))
new_array = vkd3d_realloc(ctx->source_files,
sizeof(*ctx->source_files) * (ctx->source_files_count + 1));
@@ -1771,7 +1771,7 @@ preproc_directive:
{
ctx->source_files = new_array;
ctx->source_files[ctx->source_files_count++] = $2;
ctx->source_file = $2;
ctx->location.source_name = $2;
}
else
{