mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Always set ctx->cur_function in the func_prototype_no_attrs rule.
Fixes: 4c46075d86
This commit is contained in:
committed by
Alexandre Julliard
parent
cd6e8b5540
commit
0e60f4cc69
Notes:
Alexandre Julliard
2023-02-14 22:23:01 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/91
@ -4138,12 +4138,13 @@ func_prototype_no_attrs:
|
|||||||
{
|
{
|
||||||
if (!($$.decl = hlsl_new_func_decl(ctx, type, &$5, &$7.semantic, &@3)))
|
if (!($$.decl = hlsl_new_func_decl(ctx, type, &$5, &$7.semantic, &@3)))
|
||||||
YYABORT;
|
YYABORT;
|
||||||
ctx->cur_function = $$.decl;
|
|
||||||
|
|
||||||
hlsl_add_function(ctx, $3, $$.decl);
|
hlsl_add_function(ctx, $3, $$.decl);
|
||||||
|
|
||||||
$$.first = true;
|
$$.first = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx->cur_function = $$.decl;
|
||||||
}
|
}
|
||||||
|
|
||||||
func_prototype:
|
func_prototype:
|
||||||
|
@ -177,7 +177,7 @@ float4 main() : sv_target
|
|||||||
|
|
||||||
[test]
|
[test]
|
||||||
draw quad
|
draw quad
|
||||||
todo probe all rgba (0.1, 0.2, 0.3, 0.4)
|
probe all rgba (0.1, 0.2, 0.3, 0.4)
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user