[PATCH 3/3] ddraw: Move handling of D3DRENDERSTATE_TEXTUREMAPBLEND from d3ddevice2 to d3ddevice3.

Alexander Dorofeyev alexd4 at inbox.lv
Sun May 4 07:08:32 CDT 2008

Some time ago I fixed TEXTUREMAPBLEND state, but, as a result, a regression was 
introduced in Star Wars Episode I Racer (directx6 game), because this made the 
state available in no higher than d3ddevice2. Turns out it's deprecated, but 
still available in d3ddevice3 on native. This patch moves TEXTUREMAPBLEND 
handling to d3ddevice3. Also it introduces legacyTextureBlending flag in device, 
  to avoid conflicts between TEXTUREMAPBLEND and texture stage states that 
superseded it and are also available in d3ddevice3. Apps are required to use 
only one of the two ways available, according to DX6 docs.

Fixes regression bug http://bugs.winehq.org/show_bug.cgi?id=12913.
  dlls/ddraw/ddraw_private.h |    3 +
  dlls/ddraw/device.c        |  225 +++++++++++++++++++++----------------------
  2 files changed, 113 insertions(+), 115 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 38de2b03ee9c1511efb6d48805b8d6c9b769ae95.diff
Type: text/x-patch
Size: 14291 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080504/200f2f40/attachment-0001.bin 

More information about the wine-patches mailing list