mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
fix crash in JazzJackrabbit 2
This commit is contained in:
parent
0cf0533654
commit
a3afe9e598
@ -826,6 +826,17 @@ HRESULT dds_GetAttachedSurface(IDirectDrawSurfaceImpl* This, LPDDSCAPS lpDdsCaps
|
|||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lpDdsCaps->dwCaps & DDSCAPS_FLIP)
|
||||||
|
{
|
||||||
|
if (This->backbuffer)
|
||||||
|
{
|
||||||
|
IDirectDrawSurface_AddRef(This->backbuffer);
|
||||||
|
*lpDDsurface = This->backbuffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
return DD_OK;
|
||||||
|
}
|
||||||
|
|
||||||
return DDERR_NOTFOUND;
|
return DDERR_NOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user