From 1b860b11b357b54fa34a85eae75dce73f82a3662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Thu, 12 May 2011 21:09:41 +0200 Subject: [PATCH] wined3d: Cast clipplane doubles to floats. --- dlls/wined3d/stateblock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index bbbcae250a9..8dfa232edb0 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -1055,10 +1055,10 @@ HRESULT CDECL wined3d_stateblock_apply(const struct wined3d_stateblock *stateblo if (!(map & 1)) continue; - clip[0] = stateblock->state.clip_planes[i][0]; - clip[1] = stateblock->state.clip_planes[i][1]; - clip[2] = stateblock->state.clip_planes[i][2]; - clip[3] = stateblock->state.clip_planes[i][3]; + clip[0] = (float) stateblock->state.clip_planes[i][0]; + clip[1] = (float) stateblock->state.clip_planes[i][1]; + clip[2] = (float) stateblock->state.clip_planes[i][2]; + clip[3] = (float) stateblock->state.clip_planes[i][3]; IWineD3DDevice_SetClipPlane(device, i, clip); }