Stefan Dösinger : ddraw: Correct WINED3DFMT_D24_UNORM_S8_UINT.

Alexandre Julliard julliard at winehq.org
Wed Aug 24 14:05:18 CDT 2011


Module: wine
Branch: master
Commit: 8e7ff7835402ba907f08e0f6ead93c389a787332
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8e7ff7835402ba907f08e0f6ead93c389a787332

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Aug 18 18:28:50 2011 +0200

ddraw: Correct WINED3DFMT_D24_UNORM_S8_UINT.

---

 dlls/ddraw/utils.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c
index c07fbe6..b4b9dab 100644
--- a/dlls/ddraw/utils.c
+++ b/dlls/ddraw/utils.c
@@ -216,10 +216,9 @@ void PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat, enum wined3d_format_i
         case WINED3DFMT_D24_UNORM_S8_UINT:
             DDPixelFormat->dwFlags = DDPF_ZBUFFER | DDPF_STENCILBUFFER;
             DDPixelFormat->dwFourCC = 0;
-            /* Should I set dwZBufferBitDepth to 32 here? */
             DDPixelFormat->u1.dwZBufferBitDepth = 32;
             DDPixelFormat->u2.dwStencilBitDepth = 8;
-            DDPixelFormat->u3.dwZBitMask = 0x00FFFFFFFF;
+            DDPixelFormat->u3.dwZBitMask = 0x00FFFFFF;
             DDPixelFormat->u4.dwStencilBitMask = 0xFF000000;
             DDPixelFormat->u5.dwRGBAlphaBitMask = 0x0;
             break;




More information about the wine-cvs mailing list