From 886269645343d27bed3ea58c9b32ae9bc872ead2 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 18 Sep 2010 12:47:03 +0000 Subject: [PATCH] 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 --- vid_wgl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vid_wgl.c b/vid_wgl.c index dbdf8322..7871c225 100644 --- 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; -- 2.39.2