(D3D) Get rid of some backbuffer glitches

This commit is contained in:
twinaphex 2015-11-10 23:09:13 +01:00
parent d1626265ce
commit ffe711642f

View File

@ -1648,7 +1648,14 @@ static bool d3d_frame(void *data, const void *frame,
/* render_chain() only clears out viewport,
* clear out everything. */
d3d_set_viewport(d3d, width, height, false, false);
D3DVIEWPORT screen_vp;
screen_vp.X = 0;
screen_vp.Y = 0;
screen_vp.MinZ = 0;
screen_vp.MaxZ = 1;
screen_vp.Width = width;
screen_vp.Height = height;
d3dr->SetViewport(&screen_vp);
d3d_clear(d3dr, 0, 0, D3DCLEAR_TARGET, 0, 1, 0);
/* Insert black frame first, so we