From: havoc Date: Sat, 18 Sep 2010 12:47:03 +0000 (+0000) Subject: don't use D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL because it clears the backbuffer depth... X-Git-Tag: xonotic-v0.1.0preview~230^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=886269645343d27bed3ea58c9b32ae9bc872ead2;p=xonotic%2Fdarkplaces.git 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 --- 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;