Module: wine Branch: master Commit: 79d1b2733368ff51ec6b1bd0253841c19a609af8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=79d1b2733368ff51ec6b1bd025...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Jan 3 23:06:52 2012 +0100
d3d10: Return D3D10_SVT_VOID instead of 0 from d3d10_variable_type().
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; } } }