mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(D3D) Don't ifdef out d3d_init_shader/d3d_deinit_shader
This commit is contained in:
parent
97acc50b6e
commit
56145d279d
@ -103,7 +103,6 @@ static HMONITOR monitor_all[MAX_MONITORS];
|
|||||||
static unsigned monitor_count;
|
static unsigned monitor_count;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_HLSL)
|
|
||||||
void renderchain_deinit_shader(void);
|
void renderchain_deinit_shader(void);
|
||||||
bool renderchain_init_shader(void *data);
|
bool renderchain_init_shader(void *data);
|
||||||
|
|
||||||
@ -116,7 +115,6 @@ static bool d3d_init_shader(void *data)
|
|||||||
{
|
{
|
||||||
return renderchain_init_shader(data);
|
return renderchain_init_shader(data);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void d3d_deinit_chain(d3d_video_t *d3d)
|
static void d3d_deinit_chain(d3d_video_t *d3d)
|
||||||
{
|
{
|
||||||
@ -140,9 +138,7 @@ static void d3d_deinitialize(d3d_video_t *d3d)
|
|||||||
font_ctx->free(d3d->font_handle);
|
font_ctx->free(d3d->font_handle);
|
||||||
font_ctx = NULL;
|
font_ctx = NULL;
|
||||||
d3d_deinit_chain(d3d);
|
d3d_deinit_chain(d3d);
|
||||||
#ifdef HAVE_SHADERS
|
|
||||||
d3d_deinit_shader(d3d);
|
d3d_deinit_shader(d3d);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _XBOX
|
#ifndef _XBOX
|
||||||
d3d->needs_restore = false;
|
d3d->needs_restore = false;
|
||||||
@ -254,13 +250,11 @@ static bool d3d_initialize(d3d_video_t *d3d, const video_info_t *info)
|
|||||||
d3d_calculate_rect(d3d, d3d->screen_width, d3d->screen_height,
|
d3d_calculate_rect(d3d, d3d->screen_width, d3d->screen_height,
|
||||||
info->force_aspect, global->system.aspect_ratio);
|
info->force_aspect, global->system.aspect_ratio);
|
||||||
|
|
||||||
#ifdef HAVE_SHADERS
|
|
||||||
if (!d3d_init_shader(d3d))
|
if (!d3d_init_shader(d3d))
|
||||||
{
|
{
|
||||||
RARCH_ERR("Failed to initialize shader subsystem.\n");
|
RARCH_ERR("Failed to initialize shader subsystem.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!d3d_init_chain(d3d, info))
|
if (!d3d_init_chain(d3d, info))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user