DDraw: enable EnableAutoDepthStencil to receive depth support

Roderick Colenbrander thunderbird2k at gmx.net
Thu May 1 16:46:32 CDT 2008


Hi,

As of the lifting of the pixel format limitation WineD3D tries to match the real pixel format requirements of d3d programs. All the code around assumed we had alpha and depth which we don't have in all cases. DirectDraw was making this assumption as well and that's why this bug wasn't found years ago.

WineD3D uses the AutoDepthStencilFormat when EnableAutoDepthStencil is set for requesting a WGL pixel format with depth/stencil support. DDr
aw isn't setting this variable to TRUE and therefore never gets depth/stencil. Actually the flag originates from d3d8/d3d9 and because wined3d was inspired by that ddraw needs to set it. This patch fixes Dungeon Siege (12781), Forsaken and likely dozens of other prorams.

Regards,
Roderick Colenbrander
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-WineD3D-uses-the-AutoDepthStencilFormat-when-EnableA.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080501/533cee9d/attachment.bin 


More information about the wine-patches mailing list