(360) Use faster SetTextureFetchConstant after first SetTexture transfer

This commit is contained in:
twinaphex 2014-03-06 04:04:03 +01:00
parent 887b57fef4
commit a99bea53d9

View File

@ -743,12 +743,14 @@ static void render_pass(void *data, const void *frame, unsigned width, unsigned
blit_to_texture(d3d, frame, width, height, pitch);
set_vertices(d3d, 1, width, height);
#ifdef _XBOX1
if (g_extern.frame_count)
#ifdef _XBOX1
d3dr->SwitchTexture(0, d3d->lpTexture);
else
#elif defined _XBOX360
d3dr->SetTextureFetchConstant(0, d3d->lpTexture);
#endif
RD3DDevice_SetTexture(d3dr, 0, d3d->lpTexture);
else
RD3DDevice_SetTexture(d3dr, 0, d3d->lpTexture);
RD3DDevice_SetViewport(d3d->dev, &d3d->final_viewport);
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);