ddraw: Don't set the pixelformat's dwSize field in CreateSurface().

This should be unnecessary.
This commit is contained in:
Henri Verbeet 2013-11-26 10:41:47 +01:00 committed by Alexandre Julliard
parent a124e927fa
commit 0261c465eb
1 changed files with 0 additions and 1 deletions

View File

@ -2924,7 +2924,6 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
/* Modify some flags */
copy_to_surfacedesc2(&desc2, DDSD);
desc2.u4.ddpfPixelFormat.dwSize=sizeof(DDPIXELFORMAT); /* Just to be sure */
/* The first surface is a front buffer, the back buffer is created afterwards */
if (desc2.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)