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

Alexander Dorofeyev alexd4 at inbox.lv
Mon May 5 12:09:40 CDT 2008


Forgot to properly initialize the flag on device creation in the previous patch, 
please use this one instead.
---

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 +++++++++++++++++++++----------------------
  dlls/ddraw/direct3d.c      |    2 +
  3 files changed, 115 insertions(+), 115 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5f6eab097ef90b6609d91d405f4f9b61b77045bb.diff
Type: text/x-patch
Size: 14696 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080505/53bb4d1f/attachment.bin 


More information about the wine-patches mailing list