d3d10/effect: Remove interface vs implementation pointer comparsion in buffer variable's IsValid().

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-26 23:25:12 +02:00 committed by Alexandre Julliard
parent 48759a68bb
commit cfd93716ef
1 changed files with 4 additions and 2 deletions

View File

@ -4495,9 +4495,11 @@ static inline struct d3d10_effect_variable *impl_from_ID3D10EffectConstantBuffer
static BOOL STDMETHODCALLTYPE d3d10_effect_constant_buffer_IsValid(ID3D10EffectConstantBuffer *iface)
{
TRACE("iface %p\n", iface);
struct d3d10_effect_variable *v = impl_from_ID3D10EffectConstantBuffer(iface);
return (struct d3d10_effect_variable *)iface != &null_local_buffer;
TRACE("iface %p.\n", iface);
return v != &null_local_buffer;
}
static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetType(ID3D10EffectConstantBuffer *iface)