diff --git a/gfx/drivers/d3d11.c b/gfx/drivers/d3d11.c index 11ffbd7175..2f74aef8aa 100644 --- a/gfx/drivers/d3d11.c +++ b/gfx/drivers/d3d11.c @@ -33,7 +33,9 @@ #include "../common/d3d11_common.h" #include "../common/dxgi_common.h" #include "../common/d3dcompiler_common.h" +#ifdef HAVE_SLANG #include "../drivers_shader/slang_process.h" +#endif static void d3d11_set_filtering(void* data, unsigned index, bool smooth) { @@ -138,6 +140,7 @@ static void d3d11_free_shader_preset(d3d11_video_t* d3d11) static bool d3d11_gfx_set_shader(void* data, enum rarch_shader_type type, const char* path) { +#ifdef HAVE_SLANG unsigned i; d3d11_video_t* d3d11 = (d3d11_video_t*)data; @@ -347,6 +350,7 @@ static bool d3d11_gfx_set_shader(void* data, enum rarch_shader_type type, const error: d3d11_free_shader_preset(d3d11); +#endif return false; }