(D3D) Put ifdefs around shader code

This commit is contained in:
twinaphex 2014-09-12 00:18:18 +02:00
parent 9caadf5a55
commit f7baa4c636
2 changed files with 7 additions and 0 deletions

View File

@ -41,8 +41,11 @@
#include "../../general.h"
#include "../../driver.h"
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_HLSL)
#include "../shader_parse.h"
#include "../shader_common.h"
#endif
#include "../fonts/d3d_font.h"
#include "../gfx_context.h"

View File

@ -1,10 +1,14 @@
#include "d3d_defines.h"
#include "../gfx_common.h"
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_HLSL)
#ifdef HAVE_HLSL
#include "../shader_hlsl.h"
#endif
#endif
/* forward declarations */
static void d3d_calculate_rect(d3d_video_t *d3d,
unsigned width, unsigned height,