[Bug 14758] drakensang can not create render surface

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Aug 10 07:31:28 CDT 2008


Louis Lenders <xerox_xerox2000 at yahoo.co.uk> changed:

           What    |Removed                     |Added
                 CC|                            |xerox_xerox2000 at yahoo.co.uk

--- Comment #5 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk>  2008-08-10 07:31:28 ---
it looks like the problem is:

err:d3d:getColorBits Unsupported format: WINED3DFMT_R32F

With the ,obviously very wrong, hack below the crash is gone for me, and i can
start the game (demo). I remember someone was working on getcolorbits, and sent
a patch to wine-patches; maybe you could see if it solves the issue 

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 98f7eef..1783d12 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1267,14 +1267,14 @@ BOOL getColorBits(WINED3DFORMAT fmt, short *redSize,
short *greenSize, short *bl
             ERR("Unsupported format: %s\n", debug_d3dformat(fmt));
-            return FALSE;
+     //       return FALSE;
+if(fmt==WINED3DFMT_R32F) fmt = WINED3DFMT_X8R8G8B8;
     desc = getFormatDescEntry(fmt, NULL, NULL);
         ERR("Unable to look up format: 0x%x\n", fmt);
-        return FALSE;
+       // return FALSE;
     *redSize = count_bits(desc->redMask);
     *greenSize = count_bits(desc->greenMask);

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