[PATCH 3/5] wined3d: Fill whole structure in find_ds_compile_args().
Józef Kucia
jkucia at codeweavers.com
Wed May 17 08:42:33 CDT 2017
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/shader.c | 2 ++
dlls/wined3d/wined3d_private.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/dlls/wined3d/shader.c b/dlls/wined3d/shader.c
index 1dd8e6d..7ee867d 100644
--- a/dlls/wined3d/shader.c
+++ b/dlls/wined3d/shader.c
@@ -3523,6 +3523,8 @@ void find_ds_compile_args(const struct wined3d_state *state, const struct wined3
: WINED3D_SHADER_TYPE_PIXEL;
args->render_offscreen = context->render_offscreen;
+
+ args->padding = 0;
}
void find_gs_compile_args(const struct wined3d_state *state, const struct wined3d_shader *shader,
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index f376d41..57c2a96 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1336,6 +1336,7 @@ struct ds_compile_args
unsigned int output_count : 16;
unsigned int next_shader_type : 3;
unsigned int render_offscreen : 1;
+ unsigned int padding : 12;
};
struct gs_compile_args
--
2.10.2
More information about the wine-patches
mailing list