[Bug 9775] Max Payne 1.05 - Screenshot fails

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jun 13 07:40:21 CDT 2008


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





--- Comment #13 from Tobias Jakobi <liquid.acid at gmx.net>  2008-06-13 07:40:20 ---
Another piece of evidence that IDirect3DDevice8::CreateImageSurface is not
using D3DPOOL_SCRATCH.

I finally found a copy of the DX8.1 SDK on the net and from the docs (quote):

Remarks:
...
Image surfaces are placed in the D3DPOOL_SYSTEMMEM memory class.


I tried writing a test for this, but I'm not really sure how to do this.
First problem: That's my first time writing a Direct3D application...
Second problem: What calls are I'm supposed to throw at the surface created by
the CreateImageSurface call so I can be sure it's in the SYSTEMMEM memory pool?

Stefan Doesinger mentioned some like CopyRects, but according to the DX8.1 docs
the surface should support that. Also it should support locking, but nothing
more.

I was more thinking about using GetDesc on the surface and then checking the
returned struct for the pool?!
Any advice on this one?

Greets,
Tobias Jakobi


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