d3d8: Back buffer count fix.
This commit is contained in:
parent
1523b8f19e
commit
1c46c693c7
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue