mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(XDK D3D) Add black frame insertion code block - will be useless
for Xbox consoles so far anyway but just to keep in sync with PC D3D driver
This commit is contained in:
parent
43a8520ee8
commit
609f40a3bf
@ -812,6 +812,13 @@ static bool xdk_d3d_frame(void *data, const void *frame,
|
||||
d3d->shader->set_mvp(NULL);
|
||||
#endif
|
||||
|
||||
// Insert black frame first, so we can screenshot, etc.
|
||||
if (g_settings.video.black_frame_insertion)
|
||||
{
|
||||
d3dr->Present(NULL, NULL, NULL, NULL);
|
||||
d3dr->Clear(0, 0, D3DCLEAR_TARGET, 0, 1, 0);
|
||||
}
|
||||
|
||||
RD3DDevice_SetTexture(d3dr, 0, d3d->lpTexture);
|
||||
|
||||
#ifdef HAVE_HLSL
|
||||
|
Loading…
x
Reference in New Issue
Block a user