Stefan Dösinger : ddraw: Z buffers can be attached to offscreen d3d devices.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 3 08:01:25 CDT 2007


Module: wine
Branch: master
Commit: 58fb9dd5c03000e85df2f188c993fd30cd79a9da
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=58fb9dd5c03000e85df2f188c993fd30cd79a9da

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sat Jun 30 23:42:40 2007 +0200

ddraw: Z buffers can be attached to offscreen d3d devices.

---

 dlls/ddraw/surface_thunks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/surface_thunks.c b/dlls/ddraw/surface_thunks.c
index d8ce9ba..ef6d48f 100644
--- a/dlls/ddraw/surface_thunks.c
+++ b/dlls/ddraw/surface_thunks.c
@@ -92,7 +92,7 @@ IDirectDrawSurface3Impl_AddAttachedSurface(LPDIRECTDRAWSURFACE3 iface,
         }
         /* OK */
     }
-    else if(This->surface_desc.ddsCaps.dwCaps & (DDSCAPS_PRIMARYSURFACE) &&
+    else if(This->surface_desc.ddsCaps.dwCaps & (DDSCAPS_PRIMARYSURFACE | DDSCAPS_3DDEVICE) &&
             Surf->surface_desc.ddsCaps.dwCaps & (DDSCAPS_ZBUFFER))
     {
         /* OK */




More information about the wine-cvs mailing list