Stefan Dösinger : d3d8: Back buffer count fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 31 05:31:30 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 1c46c693c7daee92ce680bae36cc31bc2e161a7a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=1c46c693c7daee92ce680bae36cc31bc2e161a7a

Author: Stefan Dösinger <stefan at 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");




More information about the wine-cvs mailing list