mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
committed by
Alexandre Julliard
parent
3a975c2215
commit
3bf0e40b9d
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user