H. Verbeet : wined3d: Only copy the depth buffer if there is one.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 20 05:52:19 CST 2006


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

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Sat Nov 18 17:08:17 2006 +0100

wined3d: Only copy the depth buffer if there is one.

---

 dlls/wined3d/drawprim.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index 7b60054..b3ee4ce 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -2237,6 +2237,9 @@ static void depth_copy(IWineD3DDevice *i
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
     IWineD3DSurfaceImpl *depth_stencil = (IWineD3DSurfaceImpl *)This->depthStencilBuffer;
 
+    /* Only copy the depth buffer if there is one. */
+    if (!depth_stencil) return;
+
     /* TODO: Make this work for modes other than FBO */
     if (wined3d_settings.offscreen_rendering_mode != ORM_FBO) return;
 




More information about the wine-cvs mailing list