Henri Verbeet : wined3d: Set the byte count for WINED3DFMT_UNKNOWN to 0.

Alexandre Julliard julliard at winehq.org
Tue Mar 24 09:01:58 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Mar 24 10:09:22 2009 +0100

wined3d: Set the byte count for WINED3DFMT_UNKNOWN to 0.

As far as I can tell nothing depends on this being 1, and there's some code
that checks for WINED3DFMT_UNKNOWN and uses 0 for the byte count in that case.

---

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

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 7a66432..a2a438e 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -50,7 +50,7 @@ struct StaticPixelFormatDesc
 static const struct StaticPixelFormatDesc formats[] =
 {
   /* WINED3DFORMAT               alphamask    redmask    greenmask    bluemask     bpp    depth  stencil   isFourcc */
-    {WINED3DFMT_UNKNOWN,            0x0,        0x0,        0x0,        0x0,        1,      0,      0,      FALSE},
+    {WINED3DFMT_UNKNOWN,            0x0,        0x0,        0x0,        0x0,        0,      0,      0,      FALSE},
     /* FourCC formats, kept here to have WINED3DFMT_R8G8B8(=20) at position 20 */
     {WINED3DFMT_UYVY,               0x0,        0x0,        0x0,        0x0,        2,      0,      0,      TRUE },
     {WINED3DFMT_YUY2,               0x0,        0x0,        0x0,        0x0,        2,      0,      0,      TRUE },




More information about the wine-cvs mailing list