[1/5] ddraw: Simplify Z format parsing a bit, remove ERRs

Stefan Dösinger stefan at codeweavers.com
Thu Sep 1 10:28:34 CDT 2011


On Thursday 01 September 2011 13:27:28 Henri Verbeet wrote:
> On 1 September 2011 11:01, Stefan Dösinger <stefan at codeweavers.com> wrote:
> >                  case 32:
> >                      if(DDPixelFormat->u2.dwStencilBitDepth == 8)
> >                      
> >                          return WINED3DFMT_D24_UNORM_S8_UINT;
> > 
> > -                    else
> > +                    else if (DDPixelFormat->u2.dwStencilBitDepth == 4)
> > 
> >                          return WINED3DFMT_S4X4_UINT_D24_UNORM;
> 
> I'm not sure if this is intentional or not, but you fallthrough to the
> default case here.
It was intentional, but you're right that it is inconsistent.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110901/8f2d72b2/attachment.pgp>


More information about the wine-devel mailing list