Commit e81ad39d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 3c1a02eb
......@@ -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);
TRACE("iface %p.\n", iface);
return (struct d3d10_effect_variable *)iface != &null_shader_resource_variable;
return v != &null_shader_resource_variable;
}
static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_shader_resource_variable_GetType(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment