wined3d: Cast clipplane doubles to floats.

This commit is contained in:
Stefan Dösinger 2011-05-12 21:09:41 +02:00 committed by Alexandre Julliard
parent 20b147bfeb
commit 1b860b11b3
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}