This commit is contained in:
twinaphex 2017-09-05 00:10:24 +02:00
parent d1709c7ffb
commit e1c139dda6
3 changed files with 3 additions and 5 deletions

View File

@ -1245,7 +1245,8 @@ ifeq ($(HAVE_D3D9), 1)
ifeq ($(HAVE_HLSL), 1)
LIBS += -lcgD3D9
OBJ += gfx/drivers_renderchain/d3d9_hlsl_renderchain.o
OBJ += gfx/drivers_renderchain/d3d9_hlsl_renderchain.o \
gfx/drivers_shader/shader_hlsl.o
endif
endif

View File

@ -457,11 +457,7 @@ static void hlsl_use(void *data, void *shader_data, unsigned idx, bool set_activ
hlsl_data->active_idx = idx;
d3d_set_vertex_shader(d3dr, idx, hlsl_data->prg[idx].vprg);
#ifdef _XBOX
D3DDevice_SetPixelShader(d3dr, hlsl_data->prg[idx].fprg);
#else
d3dr->SetPixelShader(hlsl_data->prg[idx].fprg);
#endif
}
}

View File

@ -397,6 +397,7 @@ static const renderchain_driver_t *renderchain_drivers[] = {
#endif
#if defined(_WIN32) && defined(HAVE_D3D9) && defined(HAVE_HLSL)
&hlsl_d3d9_renderchain,
#endif
#if defined(_WIN32) && defined(HAVE_D3D8)
&d3d8_renderchain,
#endif