[4/4] wined3d: Only copy the depth buffer if there is one
H. Verbeet
hverbeet at gmail.com
Sat Nov 18 10:08:17 CST 2006
Changelog:
- Only copy the depth buffer if there is one
-------------- next part --------------
---
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-patches
mailing list