diff --git a/gfx/d3d9/d3d.hpp b/gfx/d3d9/d3d.hpp index e3f8cdc41e..3504307c74 100644 --- a/gfx/d3d9/d3d.hpp +++ b/gfx/d3d9/d3d.hpp @@ -42,6 +42,7 @@ #include "../../general.h" #include "../../driver.h" #include "../shader_parse.h" +#include "../shader_common.h" #include "../fonts/d3d_font.h" #include "../gfx_context.h" @@ -133,7 +134,11 @@ typedef struct Vertex } Vertex; #endif +#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) +#ifdef _XBOX typedef struct gl_shader_backend gl_shader_backend_t; +#endif +#endif void d3d_make_d3dpp(void *data, const video_info_t *info, D3DPRESENT_PARAMETERS *d3dpp); @@ -141,8 +146,10 @@ typedef struct d3d_video { const d3d_font_renderer_t *font_ctx; const gfx_ctx_driver_t *ctx_driver; +#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) #ifdef _XBOX const gl_shader_backend_t *shader; +#endif #endif bool should_resize; bool quitting;