d3d8: Back buffer count fix.

This commit is contained in:
Stefan Dösinger 2006-05-30 23:32:32 +02:00 committed by Alexandre Julliard
parent 1523b8f19e
commit 1c46c693c7
1 changed files with 5 additions and 0 deletions

View File

@ -182,6 +182,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE8
TRACE("(%p) Relay\n", This);
/* Fix the back buffer count */
if(pPresentationParameters->BackBufferCount == 0) {
pPresentationParameters->BackBufferCount = 1;
}
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
if (NULL == object) {
FIXME("Allocation of memory failed\n");