Module: wine Branch: refs/heads/master Commit: 1c46c693c7daee92ce680bae36cc31bc2e161a7a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1c46c693c7daee92ce680bae...
Author: Stefan Dösinger stefan@codeweavers.com Date: Tue May 30 23:32:32 2006 +0200
d3d8: Back buffer count fix.
---
dlls/d3d8/device.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index 0119a1f..6ebe678 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -182,6 +182,11 @@ HRESULT WINAPI IDirect3DDevice8Impl_Crea
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");