[patch 1/2, try 2] wined3d: rewrite IWineD3DSurfaceImpl_BltOverride colorfill codepath

Alexander Dorofeyev alexd4 at inbox.lv
Thu Dec 20 01:32:11 CST 2007


Hello.

I'm not sure why previous patch set wasn't committed, but, as Stefan Dösinger
adviced I merged two patches so that there're less patches. This change is
needed, because

1) ActivateContext gets called within ENTER_GL/LEAVE_GL
2) there are redundant glDrawBuffer calls repeating what ActivateContext should do
3) IWineD3DDeviceImpl_Clear does ActivateContext with a different surface than
what IWineD3DSurfaceImpl_BltOverride needs to clear, so in won't work properly
in many situations, for example any colorfill blt's to front buffer in
double-buffered ddraw application will go to back buffer instead.

---
   dlls/wined3d/device.c          |  162 ++++++++++++++++++++++++++++++++++++++++
   dlls/wined3d/surface.c         |   51 ++++---------
   dlls/wined3d/wined3d_private.h |    3 +
   3 files changed, 179 insertions(+), 37 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9830e56b479509813aea0b3a6f5a36d2d95b67da.diff
Type: text/x-patch
Size: 12258 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071219/715919e9/attachment.bin 


More information about the wine-patches mailing list