fix DDSCAPS_PRIMARYSURFACE check in surface->release
This commit is contained in:
parent
5ea076752b
commit
8ae70e454f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ ULONG __stdcall ddraw_surface_Release(IDirectDrawSurfaceImpl *This)
|
|||
|
||||
if(This->Ref == 0)
|
||||
{
|
||||
if(This->caps == DDSCAPS_PRIMARYSURFACE)
|
||||
if(This->caps & DDSCAPS_PRIMARYSURFACE)
|
||||
{
|
||||
EnterCriticalSection(&ddraw->cs);
|
||||
ddraw->primary = NULL;
|
||||
|
|
Loading…
Reference in a new issue