Nikolay Sivov : vkd3d-shader/fx: Check technique type in global scope as well.
Module: vkd3d Branch: master Commit: 56100d36b1534fa12888e55c749ee4f57c6adc65 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/56100d36b1534fa12888e55c749ee4... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Jan 16 12:09:41 2024 +0100 vkd3d-shader/fx: Check technique type in global scope as well. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- libs/vkd3d-shader/fx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index 17b9627b..f9e03adf 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -176,9 +176,7 @@ static void write_techniques(struct hlsl_scope *scope, struct fx_write_context * LIST_FOR_EACH_ENTRY(var, &scope->vars, struct hlsl_ir_var, scope_entry) { - const struct hlsl_type *type = var->data_type; - - if (type->base_type == HLSL_TYPE_TECHNIQUE && type->e.version == 10) + if (technique_matches_version(var, fx)) { write_technique(var, fx); ++fx->technique_count;
participants (1)
-
Alexandre Julliard