From aac99bf2ce4aa9b26c42dbf50ce056e5a79342c5 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Fri, 15 Sep 2017 15:12:24 +0200 Subject: [PATCH] wined3d: Always initialize fx field in struct wined3d_cs_blt_sub_resource (Valgrind). Signed-off-by: Matteo Bruni Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/cs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index b3b6588ff9b..04e01da9e0a 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);