From 1c46c693c7daee92ce680bae36cc31bc2e161a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com> Date: Tue, 30 May 2006 23:32:32 +0200 Subject: [PATCH] d3d8: Back buffer count fix. --- dlls/d3d8/device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index 0119a1fc423..6ebe6785700 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -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"); -- 2.24.1