[PATCH] ddraw: Explicit backbuffer allowed again.

Jaroslav Reznik rezza at seznam.cz
Fri Jul 20 04:09:34 CDT 2007


Some games needs explicit back buffer (like Combat Pillows, more info BUG ID 9008). This patch allows it again. Seems like in DirectX it is possible.  

Changelog:
  Allows explicit back buffer.

R.

-------------- next part --------------
 dlls/ddraw/ddraw.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

95d759c041f8b386d1c767190bb7f775eac3c3ab
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index ce591f1..25f9b4b 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2293,11 +2293,12 @@ IDirectDrawImpl_CreateSurface(IDirectDra
         return DDERR_NOEXCLUSIVEMODE;
     }

-    if(DDSD->ddsCaps.dwCaps & (DDSCAPS_FRONTBUFFER | DDSCAPS_BACKBUFFER)) {
-        WARN("Application tried to create an explicit front or back buffer\n");
+    if(DDSD->ddsCaps.dwCaps & DDSCAPS_FRONTBUFFER) {
+        WARN("Application tried to create an explicit front buffer\n");
         LeaveCriticalSection(&ddraw_cs);
         return DDERR_INVALIDCAPS;
     }
+
     /* Check cube maps but only if the size includes them */
     if (DDSD->dwSize >= sizeof(DDSURFACEDESC2))
     {
--
1.2.4



More information about the wine-patches mailing list