[PATCH v2 3/7] wined3d: Always initialize fx field in struct wined3d_cs_blt_sub_resource (Valgrind).

Matteo Bruni mbruni at codeweavers.com
Fri Sep 15 08:12:24 CDT 2017


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
v2: Hopefully don't crash, clear the entire fx field...

 dlls/wined3d/cs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index b3b6588ff9..04e01da9e0 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -2110,6 +2110,8 @@ void wined3d_cs_emit_blt_sub_resource(struct wined3d_cs *cs, struct wined3d_reso
     op->flags = flags;
     if (fx)
         op->fx = *fx;
+    else
+        memset(&op->fx, 0, sizeof(op->fx));
     op->filter = filter;
 
     wined3d_resource_acquire(dst_resource);
-- 
2.13.5




More information about the wine-patches mailing list