]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't use D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL because it clears the backbuffer depth...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Sep 2010 12:47:03 +0000 (12:47 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Sep 2010 12:47:03 +0000 (12:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10475 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index dbdf832230a82e32ae1546ce48cb8f5da6b1e033..7871c225a91cc7d9836d2024c9627a699146d5b4 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -1458,7 +1458,8 @@ qboolean VID_InitModeDX(viddef_mode_t *mode, int version)
        for (deviceindex = 0;deviceindex < numdevices && !vid_d3d9dev;deviceindex++)
        {
                memset(&vid_d3dpresentparameters, 0, sizeof(vid_d3dpresentparameters));
-               vid_d3dpresentparameters.Flags = D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL;
+//             vid_d3dpresentparameters.Flags = D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL;
+               vid_d3dpresentparameters.Flags = 0;
                vid_d3dpresentparameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
                vid_d3dpresentparameters.hDeviceWindow = mainwindow;
                vid_d3dpresentparameters.BackBufferWidth = width;