d3d10/effect: Remove a cast in IsValid() for SRV variables.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-10-28 10:46:35 +03:00 committed by Alexandre Julliard
parent 3c1a02eb97
commit e81ad39d87
1 changed files with 4 additions and 2 deletions

View File

@ -6411,9 +6411,11 @@ static inline struct d3d10_effect_variable *impl_from_ID3D10EffectShaderResource
static BOOL STDMETHODCALLTYPE d3d10_effect_shader_resource_variable_IsValid(ID3D10EffectShaderResourceVariable *iface)
{
TRACE("iface %p\n", iface);
struct d3d10_effect_variable *v = impl_from_ID3D10EffectShaderResourceVariable(iface);
return (struct d3d10_effect_variable *)iface != &null_shader_resource_variable;
TRACE("iface %p.\n", iface);
return v != &null_shader_resource_variable;
}
static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_shader_resource_variable_GetType(