H. Verbeet : ddraw: Order Z-buffer formats by depth buffer bit depths in IDirect3DImpl_7_EnumZBufferFormats .

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 31 04:32:08 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 6add05d33b11f7d0e96778decdad8f3ddace83e3
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=6add05d33b11f7d0e96778decdad8f3ddace83e3

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Sun Jul 30 23:28:24 2006 +0200

ddraw: Order Z-buffer formats by depth buffer bit depths in IDirect3DImpl_7_EnumZBufferFormats.

---

 dlls/ddraw/direct3d.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/ddraw/direct3d.c b/dlls/ddraw/direct3d.c
index 19c2e8c..db9fa7d 100644
--- a/dlls/ddraw/direct3d.c
+++ b/dlls/ddraw/direct3d.c
@@ -1053,13 +1053,15 @@ IDirect3DImpl_7_EnumZBufferFormats(IDire
     HRESULT hr;
     int i;
 
+    /* Order matters. Specifically, BattleZone II (full version) expects the
+     * 16-bit depth formats to be listed before the 24 and 32 ones. */
     WINED3DFORMAT FormatList[] = {
-        WINED3DFMT_D32,
         WINED3DFMT_D15S1,
-        WINED3DFMT_D24S8,
+        WINED3DFMT_D16,
         WINED3DFMT_D24X8,
         WINED3DFMT_D24X4S4,
-        WINED3DFMT_D16
+        WINED3DFMT_D24S8,
+        WINED3DFMT_D32
     };
 
     TRACE("(%p)->(%s,%p,%p): Relay\n", iface, debugstr_guid(refiidDevice), Callback, Context);




More information about the wine-cvs mailing list