diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 70b8b60205..13b11e4847 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -3426,11 +3426,12 @@ void video_driver_set_mvp(video_shader_ctx_mvp_t *mvp) } bool renderchain_d3d_init_first( - enum d3d_comm_api api, + unsigned api, const d3d_renderchain_driver_t **renderchain_driver, void **renderchain_handle) { - switch (api) +#ifdef HAVE_D3D + switch ((enum d3d_comm_api)api) { case D3D_COMM_D3D9: #ifdef HAVE_D3D9 @@ -3478,6 +3479,7 @@ bool renderchain_d3d_init_first( case D3D_COMM_NONE: break; } +#endif return false; } diff --git a/gfx/video_driver.h b/gfx/video_driver.h index b95bf78b9b..1e8fb91b07 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -33,10 +33,6 @@ #include "../input/input_overlay.h" #endif -#ifdef HAVE_D3D -#include "common/d3d_common.h" -#endif - #include "video_defines.h" #include "video_coord_array.h" #include "video_filter.h" @@ -1321,7 +1317,7 @@ bool video_shader_driver_compile_program(struct shader_program_info *program_inf bool video_shader_driver_wrap_type(video_shader_ctx_wrap_t *wrap); bool renderchain_d3d_init_first( - enum d3d_comm_api api, + unsigned api, const d3d_renderchain_driver_t **renderchain_driver, void **renderchain_handle);