mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
(D3D) Get rid of some backbuffer glitches
This commit is contained in:
parent
d1626265ce
commit
ffe711642f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user