mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-10 18:50:33 +00:00
(XDK1) Use faster SwitchTexture after the first SetTexture
call - should change a texture in ten x86 instructions
This commit is contained in:
parent
6894cb81a8
commit
887b57fef4
@ -743,7 +743,12 @@ static void render_pass(void *data, const void *frame, unsigned width, unsigned
|
|||||||
blit_to_texture(d3d, frame, width, height, pitch);
|
blit_to_texture(d3d, frame, width, height, pitch);
|
||||||
set_vertices(d3d, 1, width, height);
|
set_vertices(d3d, 1, width, height);
|
||||||
|
|
||||||
RD3DDevice_SetTexture(d3dr, 0, d3d->lpTexture);
|
#ifdef _XBOX1
|
||||||
|
if (g_extern.frame_count)
|
||||||
|
d3dr->SwitchTexture(0, d3d->lpTexture);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
RD3DDevice_SetTexture(d3dr, 0, d3d->lpTexture);
|
||||||
RD3DDevice_SetViewport(d3d->dev, &d3d->final_viewport);
|
RD3DDevice_SetViewport(d3d->dev, &d3d->final_viewport);
|
||||||
RD3DDevice_SetSamplerState_MinFilter(d3dr, 0, g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
|
RD3DDevice_SetSamplerState_MinFilter(d3dr, 0, g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
|
||||||
RD3DDevice_SetSamplerState_MagFilter(d3dr, 0, g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
|
RD3DDevice_SetSamplerState_MagFilter(d3dr, 0, g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user