wined3d: Make D3DRS_ZBIAS work.
authorHenri Verbeet <hverbeet@codeweavers.com>
Mon, 4 Jul 2011 19:39:35 +0000 (21:39 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 5 Jul 2011 11:46:07 +0000 (13:46 +0200)
commitddc29c40e66f686190a40ac4bc2578e81785f56f
treebb2029e8ff32c0b6cbe70cdb5c61e483b2a52c8b
parent39684c7e3ab64dcd1feba0300ec969027c5f8eb5
wined3d: Make D3DRS_ZBIAS work.

D3DRS_ZBIAS is poorly defined, but it makes sense that the bias should be
format independent. Looking at application behaviour, it seems to include a
slope scale factor as well. This fixes a couple of regressions introduced by
96b758f7b37033bf382ce40dd3310965d3ac3f76, although it was broken before as
well, just in a different way.
dlls/d3d8/d3d8_main.c
dlls/d3d8/device.c
dlls/ddraw/ddraw.c
dlls/ddraw/device.c
dlls/wined3d/state.c
include/wine/wined3d.h