[Bug 18490] Empire: Total War crashes when loading a map

wine-bugs at winehq.org wine-bugs at winehq.org
Sat May 15 21:08:21 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=18490





--- Comment #9 from naur <mig21 at static.int.pl>  2010-05-15 21:08:20 ---
I've investigated this issue again, this time in "Napoleon: Total War". It
turns out, that IDirect3D9::createDevice method has different behaviour in
Windows and Wine, when the device is created with desktop as focus window
(GetWindowDesktop() handle passed in hFocusWindow argument).
The Windows version of this method succeeds if D3DDEVTYPE_NULLREF or
D3DDEVTYPE_REF device type is requested (and fails for other types).
The Wine version of this method will always fail, regardless of the requested
device type.

Note that Windows fails to perform actual rendering on devices created in that
way. Hovewer, such device can still be used to perform some tasks, like loading
textures in a worker thread (as described in this post:
http://discussms.hosting.lsoft.com/SCRIPTS/WA-MSD.EXE?A2=ind0606C&L=DIRECTXDEV&D=0&1=DIRECTXDEV&9=A&J=on&d=No+Match%3BMatch%3BMatches&z=4&P=538
).

I'm not really sure what's the best way to handle this situation. Perhaps Wine
should create a dummy window for reference and null reference D3D9 devices?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list