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
@@ -1482,16 +1482,16 @@ static bool hlsl_ctx_init(struct hlsl_ctx *ctx, struct vkd3d_shader_message_cont
|
||||
|
||||
ctx->message_context = message_context;
|
||||
|
||||
ctx->line_no = ctx->column = 1;
|
||||
if (!(ctx->source_file = vkd3d_strdup("")))
|
||||
return false;
|
||||
if (!(ctx->source_files = vkd3d_malloc(sizeof(*ctx->source_files))))
|
||||
return false;
|
||||
if (!(ctx->source_files[0] = vkd3d_strdup("")))
|
||||
{
|
||||
vkd3d_free((void *)ctx->source_file);
|
||||
vkd3d_free(ctx->source_files);
|
||||
return false;
|
||||
}
|
||||
ctx->source_files[0] = ctx->source_file;
|
||||
ctx->source_files_count = 1;
|
||||
ctx->location.source_name = ctx->source_files[0];
|
||||
ctx->location.line = ctx->location.column = 1;
|
||||
|
||||
ctx->matrix_majority = HLSL_COLUMN_MAJOR;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user