]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
UNMERGE
authorhavoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 <>
Sat, 18 Sep 2010 12:47:03 +0000 (12:47 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 24 Sep 2010 20:00:01 +0000 (22:00 +0200)
don't use D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL because it clears the backbuffer depth on SetDepthStencilSurface calls

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10475 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::unmerge=886269645343d27bed3ea58c9b32ae9bc872ead2

vid_wgl.c

index 7871c225a91cc7d9836d2024c9627a699146d5b4..dbdf832230a82e32ae1546ce48cb8f5da6b1e033 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -1458,8 +1458,7 @@ 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 = 0;
+               vid_d3dpresentparameters.Flags = D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL;
                vid_d3dpresentparameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
                vid_d3dpresentparameters.hDeviceWindow = mainwindow;
                vid_d3dpresentparameters.BackBufferWidth = width;