ddraw: Remove an incorrect size check.

This commit is contained in:
Stefan Dösinger 2006-10-12 19:31:01 +02:00 committed by Alexandre Julliard
parent 97df92d345
commit b4afa19272
1 changed files with 1 additions and 1 deletions

View File

@ -2315,7 +2315,7 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
desc2.ddsCaps.dwCaps |= DDSCAPS_BACKBUFFER; desc2.ddsCaps.dwCaps |= DDSCAPS_BACKBUFFER;
} }
/* Set the DDSCAPS2_MIPMAPSUBLEVEL flag on mipmap sublevels according to the msdn */ /* Set the DDSCAPS2_MIPMAPSUBLEVEL flag on mipmap sublevels according to the msdn */
if((DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)&&(DDSD->dwSize >= sizeof(DDSURFACEDESC2))) if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)
{ {
desc2.ddsCaps.dwCaps2 |= DDSCAPS2_MIPMAPSUBLEVEL; desc2.ddsCaps.dwCaps2 |= DDSCAPS2_MIPMAPSUBLEVEL;
} }