(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:
twinaphex 2014-03-03 02:05:34 +01:00
parent 43a8520ee8
commit 609f40a3bf

View File

@ -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