fix a bug in createsurface

DDSD_LPSURFACE should only be automatic set if we have a system memory surface.
 

svn path=/trunk/; revision=31267
This commit is contained in:
Magnus Olsen 2007-12-16 00:43:22 +00:00
parent 2bae495105
commit dbd6da8f76

View file

@ -78,10 +78,10 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
/*
* program does not need set the DDSD_LPSURFACE,
* if they forget set it, the ddraw will autoamtic set it.
*
* if they forget set it, the ddraw will autoamtic
* set it for system memory.
*/
if ((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE)
if ((pDDSD->dwFlags & DDSCAPS_SYSTEMMEMORY) != DDSCAPS_SYSTEMMEMORY)
{
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
}