[Bug 9665] Mask of eternity crashes at startup

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Sep 17 16:14:00 CDT 2007


--- Comment #15 from Stefan Dösinger <stefandoesinger at gmx.at>  2007-09-17 16:14:00 ---
The DirectX docs do not speak about "d1" and "d2" here, this is an
implementation detail of Wine. dref is initialized at the beginning of the
function, with the line

IDirect3DImpl_GetCaps(This->wineD3D, &dref, &newDesc);

the d1 = dref and d2 = dref create a copy of the original caps, on which some
caps are filtered out - the POW2 caps and the TEXTUREPERSPECTIVE one. So d1 and
d2 are still valid after that. All these lines do is to remove the
modifications that were done inside the if block, which is intentional. A
modification that has the same effect as yours is to copy the
"d1.dpcLineCaps.dwTextureCaps &= ..." lines and insert them after the "/* The
hal device does not .. */ comment.

I suspect that the IDirect3D2 version of this method behaves differently than
the IDirect3D3 version. The test only tests IDirect3D3, not IDirect3D2.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list