mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(D3D) Build fixes
This commit is contained in:
parent
3f79218daf
commit
301ec9345e
@ -1,6 +1,10 @@
|
|||||||
#include "d3d_defines.h"
|
#include "d3d_defines.h"
|
||||||
#include "../gfx_common.h"
|
#include "../gfx_common.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_HLSL
|
||||||
|
#include "../shader_hlsl.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* forward declarations */
|
/* forward declarations */
|
||||||
static void d3d_calculate_rect(d3d_video_t *d3d,
|
static void d3d_calculate_rect(d3d_video_t *d3d,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
@ -51,7 +55,7 @@ static bool d3d_init_shader(void *data)
|
|||||||
d3d_video_t *d3d = (d3d_video_t*)data;
|
d3d_video_t *d3d = (d3d_video_t*)data;
|
||||||
(void)d3d;
|
(void)d3d;
|
||||||
(void)data;
|
(void)data;
|
||||||
#if defined(_XBOX360)
|
#if defined(HAVE_HLSL)
|
||||||
RARCH_LOG("D3D]: Using HLSL shader backend.\n");
|
RARCH_LOG("D3D]: Using HLSL shader backend.\n");
|
||||||
const gl_shader_backend_t *backend = &hlsl_backend;
|
const gl_shader_backend_t *backend = &hlsl_backend;
|
||||||
const char *shader_path = g_settings.video.shader_path;
|
const char *shader_path = g_settings.video.shader_path;
|
||||||
@ -60,8 +64,6 @@ static bool d3d_init_shader(void *data)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
return d3d->shader->init(d3d, shader_path);
|
return d3d->shader->init(d3d, shader_path);
|
||||||
#elif defined(_XBOX1)
|
|
||||||
return false;
|
|
||||||
#elif defined(HAVE_CG)
|
#elif defined(HAVE_CG)
|
||||||
d3d->cgCtx = cgCreateContext();
|
d3d->cgCtx = cgCreateContext();
|
||||||
if (!d3d->cgCtx)
|
if (!d3d->cgCtx)
|
||||||
@ -73,6 +75,8 @@ static bool d3d_init_shader(void *data)
|
|||||||
if (FAILED(ret))
|
if (FAILED(ret))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
|
#elif defined(_XBOX1)
|
||||||
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user