wine/dlls/wined3d swapchain.c

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 17 05:05:12 CST 2005


ChangeSet ID:	21307
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/11/17 05:05:12

Modified files:
	dlls/wined3d   : swapchain.c 

Log message:
	Oliver Stieber <oliver_stieber at yahoo.co.uk>
	Clear the z and stencil buffers at the end of the scene, this fixes a
	problem with the solid node bsp demo from www.codesampler.com as well
	as a lot of blank screens in some other demos.

Patch: http://cvs.winehq.org/patch.py?id=21307

Old revision  New revision  Changes     Path
 1.11          1.12          +7 -2       wine/dlls/wined3d/swapchain.c

Index: wine/dlls/wined3d/swapchain.c
diff -u -p wine/dlls/wined3d/swapchain.c:1.11 wine/dlls/wined3d/swapchain.c:1.12
--- wine/dlls/wined3d/swapchain.c:1.11	17 Nov 2005 11: 5:12 -0000
+++ wine/dlls/wined3d/swapchain.c	17 Nov 2005 11: 5:12 -0000
@@ -315,10 +315,15 @@ HRESULT WINAPI IWineD3DSwapChainImpl_Pre
 
         TRACE("Clearing\n");
 
-       IWineD3DDevice_Clear((IWineD3DDevice*)This->wineD3DDevice, 0, NULL, D3DCLEAR_STENCIL|D3DCLEAR_ZBUFFER|D3DCLEAR_TARGET, 0x00, 1.0, 0);
+        IWineD3DDevice_Clear((IWineD3DDevice*)This->wineD3DDevice, 0, NULL, D3DCLEAR_STENCIL|D3DCLEAR_ZBUFFER|D3DCLEAR_TARGET, 0x00, 1.0, 0);
 
+    } else {
+        TRACE("Clearing z/stencil buffer\n");
+
+        IWineD3DDevice_Clear((IWineD3DDevice*)This->wineD3DDevice, 0, NULL, D3DCLEAR_STENCIL|D3DCLEAR_ZBUFFER, 0x00, 1.0, 0);
     }
-        TRACE("returning\n");
+
+    TRACE("returning\n");
     return D3D_OK;
 }
 



More information about the wine-cvs mailing list