mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
set DDSD_CAPS | DDSD_ALL
This commit is contained in:
parent
152c3aa361
commit
f0586cb4cf
@ -1487,10 +1487,12 @@ HRESULT dd_CreateSurface(
|
|||||||
DDSURFACEDESC desc;
|
DDSURFACEDESC desc;
|
||||||
memset(&desc, 0, sizeof(desc));
|
memset(&desc, 0, sizeof(desc));
|
||||||
|
|
||||||
|
desc.dwFlags |= DDSD_CAPS | DDSD_ALL;
|
||||||
|
|
||||||
if (lpDDSurfaceDesc->dwBackBufferCount > 1)
|
if (lpDDSurfaceDesc->dwBackBufferCount > 1)
|
||||||
{
|
{
|
||||||
desc.dwBackBufferCount = lpDDSurfaceDesc->dwBackBufferCount - 1;
|
desc.dwBackBufferCount = lpDDSurfaceDesc->dwBackBufferCount - 1;
|
||||||
desc.dwFlags |= DDSD_BACKBUFFERCOUNT | DDSD_CAPS | DDSD_ALL;
|
desc.dwFlags |= DDSD_BACKBUFFERCOUNT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dst_surface->caps & DDSCAPS_FRONTBUFFER)
|
if (dst_surface->caps & DDSCAPS_FRONTBUFFER)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user