(D3D8/Xbox OG) Buildfix for d3d_set_vertex_shader

This commit is contained in:
twinaphex 2018-01-03 14:02:54 +01:00
parent 0ece7015e7
commit 010148ce9c

View File

@ -677,15 +677,12 @@ void d3d_set_texture(LPDIRECT3DDEVICE dev, unsigned sampler,
HRESULT d3d_set_vertex_shader(LPDIRECT3DDEVICE dev, unsigned index,
void *data)
{
#if defined(_XBOX1)
return dev->SetVertexShader(index);
#elif defined(_XBOX360)
#if defined(_XBOX360)
LPDIRECT3DVERTEXSHADER shader = (LPDIRECT3DVERTEXSHADER)data;
D3DDevice_SetVertexShader(dev, shader);
return S_OK;
#elif defined(HAVE_D3D8) && !defined(__cplusplus)
LPDIRECT3DVERTEXSHADER shader = (LPDIRECT3DVERTEXSHADER)data;
return IDirect3DDevice8_SetVertexShader(index);
return IDirect3DDevice8_SetVertexShader(dev, index);
#elif defined(HAVE_D3D9) && !defined(__cplusplus)
LPDIRECT3DVERTEXSHADER shader = (LPDIRECT3DVERTEXSHADER)data;
return IDirect3DDevice9_SetVertexShader(dev, shader);