From 1464995fdcf7a3c25ca885c6768474ee8db740b9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 3 Feb 2018 17:01:47 +0100 Subject: [PATCH] (D3D11) ability to compile without HAVE_SLANG --- gfx/drivers/d3d11.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }