mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
(XDK 360) Add more optimal calls for hlsl_use
This commit is contained in:
parent
050ed45f30
commit
98d35ec6df
@ -373,8 +373,13 @@ static void hlsl_use(unsigned index)
|
||||
if (hlsl_active && prg[index].vprg && prg[index].fprg)
|
||||
{
|
||||
active_index = index;
|
||||
#ifdef _XBOX
|
||||
D3DDevice_SetVertexShader(d3d_device_ptr, prg[index].vprg);
|
||||
D3DDevice_SetPixelShader(d3d_device_ptr, prg[index].fprg);
|
||||
#else
|
||||
d3d_device_ptr->SetVertexShader(prg[index].vprg);
|
||||
d3d_device_ptr->SetPixelShader(prg[index].fprg);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user