From fbb7e20ffdfead8108c2ba444417e29aa7305183 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Fri, 20 Jul 2012 16:37:39 +0200 Subject: [PATCH] d3dcompiler: "void" is not a plain scalar data type. It can't be used in expressions and the like. This change indirectly takes care of most of the checks. --- dlls/d3dcompiler_43/hlsl.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y index 6cc21509055..177330f2d3d 100644 --- a/dlls/d3dcompiler_43/hlsl.y +++ b/dlls/d3dcompiler_43/hlsl.y @@ -568,7 +568,7 @@ type: base_type base_type: KW_VOID { - $$ = new_hlsl_type(d3dcompiler_strdup("void"), HLSL_CLASS_SCALAR, HLSL_TYPE_VOID, 1, 1); + $$ = new_hlsl_type(d3dcompiler_strdup("void"), HLSL_CLASS_OBJECT, HLSL_TYPE_VOID, 1, 1); } | KW_SAMPLER { -- 2.11.4.GIT