set DDSD_CAPS | DDSD_ALL
This commit is contained in:
parent
152c3aa361
commit
f0586cb4cf
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue