[PATCH 3/5] d3dcompiler: "void" is not a plain scalar data type.

Matteo Bruni mbruni at codeweavers.com
Fri Jul 20 09:37:39 CDT 2012


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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dcompiler_43/hlsl.y b/dlls/d3dcompiler_43/hlsl.y
index 6cc2150..177330f 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
                             {
-- 
1.7.8.6




More information about the wine-patches mailing list