[Bug 9665] Mask of eternity crashes at startup

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Oct 5 15:49:10 CDT 2007


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





--- Comment #16 from Martin Sand <deadlock at start.no>  2007-10-05 15:49:09 ---
Yeah, I clearly misunderstood the code, so thanks for your friendly information
on the subject. It's quite hard to understand the connection between all of the
code, since there is so much of it.

Anyway, I did some more testing. It seems like it's the
D3DPTEXTURECAPS_PERSPECTIVE flag which is causing the problems. It doesn't
cause problems when it is set in d1.dpcLineCaps.dwTextureCaps, but it causes
problems when it is set in d1.dpcTriCaps.dwTextureCaps

If I change only line 331 to say:

d1.dpcTriCaps.dwTextureCaps &= ~(D3DPTEXTURECAPS_PERSPECTIVE);

Then the game will crash at startup. But if I change line 331 to say:

d1.dpcTriCaps.dwTextureCaps &= ~(D3DPTEXTURECAPS_POW2 |
D3DPTEXTURECAPS_NONPOW2CONDITIONAL);

Then the game won't crash at startup, which is the same as what happens if I
comment out the entire line.

Just for the record, I tried commenting out only line 330 first(the one which
sets the flags in d1.dpcLineCaps.dwTextureCaps), then the game will crash at
startup. I then tried to only remove the D3DPTEXTURECAPS_PERSPECTIVE flag from
being set, and removing the comments on that line, and the game will still
crash.

I also ran the ddraw crosstest in Windows XP, where the game runs, and(if I
understood the output correctly) the D3DPTEXTURECAPS_PERSPECTIVE flag is set
there, but I can surely run the test again if it is of any relevance.


-- 
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