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

Alexandre Julliard julliard at winehq.org
Fri Oct 29 16:29:08 CDT 2021


Module: wine
Branch: master
Commit: e81ad39d87db502e61eec3ec87da87516b0fe6f5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e81ad39d87db502e61eec3ec87da87516b0fe6f5

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Oct 28 10:46:35 2021 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d10/effect.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index 22a09f45e14..23374fdb48f 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -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(




More information about the wine-cvs mailing list