mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Update d3d9_set_vertex_shader
This commit is contained in:
parent
1d67334323
commit
8fadef7082
@ -386,8 +386,7 @@ static INLINE bool d3d9_set_pixel_shader(
|
||||
}
|
||||
|
||||
static INLINE bool d3d9_set_vertex_shader(
|
||||
LPDIRECT3DDEVICE9 dev, unsigned index,
|
||||
LPDIRECT3DVERTEXSHADER9 shader)
|
||||
LPDIRECT3DDEVICE9 dev, LPDIRECT3DVERTEXSHADER9 shader)
|
||||
{
|
||||
#ifdef _XBOX
|
||||
IDirect3DDevice9_SetVertexShader(dev, shader);
|
||||
|
@ -114,7 +114,7 @@ static void hlsl_use(hlsl_shader_data_t *hlsl,
|
||||
if (set_active)
|
||||
hlsl->active_idx = idx;
|
||||
|
||||
d3d9_set_vertex_shader(d3dr, idx, program->vprg);
|
||||
d3d9_set_vertex_shader(d3dr, program->vprg);
|
||||
d3d9_set_pixel_shader(d3dr, program->fprg);
|
||||
}
|
||||
|
||||
@ -311,7 +311,7 @@ static hlsl_shader_data_t *hlsl_init(hlsl_renderchain_t *chain, const char *path
|
||||
d3d_matrix_identity(&chain->mvp_val);
|
||||
|
||||
RARCH_LOG("[D3D9 HLSL]: Setting up vertex shader...\n");
|
||||
d3d9_set_vertex_shader(chain->chain.dev, 1, hlsl->prg[1].vprg);
|
||||
d3d9_set_vertex_shader(chain->chain.dev, hlsl->prg[1].vprg);
|
||||
RARCH_LOG("[D3D9 HLSL]: Setting up pixel shader...\n");
|
||||
d3d9_set_pixel_shader(chain->chain.dev, hlsl->prg[1].fprg);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user