From 2cb8b50cefddc5772238c1d5626f72cf96eadcee Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Jan 2018 16:40:26 +0100 Subject: [PATCH] D3DXCompileShader - D3D9 only --- gfx/common/d3d_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/d3d_common.c b/gfx/common/d3d_common.c index 1d71c3efb7..7d9d4e9eb1 100644 --- a/gfx/common/d3d_common.c +++ b/gfx/common/d3d_common.c @@ -1645,7 +1645,7 @@ bool d3dx_compile_shader( void *pperrormsgs, void *ppconstanttable) { -#ifdef HAVE_D3DX +#if defined(HAVE_D3DX) && defined(HAVE_D3D9) if (D3DCompileShader) { if (D3DCompileShader( @@ -1677,7 +1677,7 @@ bool d3dx_compile_shader_from_file( void *pperrormsgs, void *ppconstanttable) { -#ifdef HAVE_D3DX +#if defined(HAVE_D3DX) && defined(HAVE_D3D9) if (D3DCompileShaderFromFile) { if (D3DCompileShaderFromFile(