[PATCH 2/5] d3d10: Return D3D10_SVT_VOID instead of 0 from d3d10_variable_type().
Henri Verbeet
hverbeet at codeweavers.com
Tue Jan 3 16:06:52 CST 2012
This is the same value, but makes it more obvious where e.g. an "Unhandled
basetype D3D10_SVT_VOID." message would come from.
---
dlls/d3d10/effect.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index 350f63b..ab04a9e 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -363,7 +363,7 @@ static D3D10_SHADER_VARIABLE_TYPE d3d10_variable_type(DWORD t, BOOL is_object)
case 21: return D3D10_SVT_SAMPLER;
default:
FIXME("Unknown variable type %#x.\n", t);
- return 0;
+ return D3D10_SVT_VOID;
}
}
else
@@ -376,7 +376,7 @@ static D3D10_SHADER_VARIABLE_TYPE d3d10_variable_type(DWORD t, BOOL is_object)
case 4: return D3D10_SVT_BOOL;
default:
FIXME("Unknown variable type %#x.\n", t);
- return 0;
+ return D3D10_SVT_VOID;
}
}
}
--
1.7.3.4
More information about the wine-patches
mailing list