wined3d: Explicitly zero the whole wined3d_rasterizer_state_desc structure in wined3d_device_apply_stateblock().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
42b7bf0692
commit
ae6fdbea39
|
@ -3622,10 +3622,9 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
|||
float f;
|
||||
} bias;
|
||||
|
||||
memset(&desc, 0, sizeof(desc));
|
||||
desc.fill_mode = state->rs[WINED3D_RS_FILLMODE];
|
||||
desc.cull_mode = state->rs[WINED3D_RS_CULLMODE];
|
||||
desc.front_ccw = FALSE;
|
||||
desc.depth_bias_clamp = 0.0f;
|
||||
bias.d = state->rs[WINED3D_RS_SLOPESCALEDEPTHBIAS];
|
||||
desc.scale_bias = bias.f;
|
||||
desc.depth_clip = TRUE;
|
||||
|
|
Loading…
Reference in New Issue