From f2a8b2f3d3eba6b7f41378be5f352818d28b73ea Mon Sep 17 00:00:00 2001 From: "havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249" <> Date: Sat, 18 Sep 2010 12:47:03 +0000 Subject: [PATCH] UNMERGE 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vid_wgl.c b/vid_wgl.c index 7871c225..dbdf8322 100644 --- 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; -- 2.39.2