mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 04:35:07 +00:00
do not try add DDSD_LPSURFACE when it is already been set
svn path=/trunk/; revision=31269
This commit is contained in:
parent
2dd0e4bc06
commit
53ddbc9868
|
@ -81,7 +81,8 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
||||||
* if they forget set it, the ddraw will autoamtic
|
* if they forget set it, the ddraw will autoamtic
|
||||||
* set it for system memory.
|
* set it for system memory.
|
||||||
*/
|
*/
|
||||||
if ((pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) == DDSCAPS_SYSTEMMEMORY)
|
if ( ((pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) == DDSCAPS_SYSTEMMEMORY) &&
|
||||||
|
((pDDSD->dwFlags & DDSD_LPSURFACE) != DDSD_LPSURFACE) )
|
||||||
{
|
{
|
||||||
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
|
pDDSD->dwFlags = pDDSD->dwFlags | DDSD_LPSURFACE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue