diff --git a/gfx/drivers/d3d10.c b/gfx/drivers/d3d10.c index 17ee31a1ee..fef28ee645 100644 --- a/gfx/drivers/d3d10.c +++ b/gfx/drivers/d3d10.c @@ -1744,6 +1744,7 @@ static uint32_t d3d10_get_flags(void *data) return flags; } +#ifdef __WINRT__ static void d3d10_get_video_output_size(void *data, unsigned *width, unsigned *height) { @@ -1763,6 +1764,7 @@ static void d3d10_get_video_output_next(void *data) unsigned height = 0; win32_get_video_output_next(&width, &height); } +#endif static const video_poke_interface_t d3d10_poke_interface = { d3d10_get_flags, @@ -1776,9 +1778,15 @@ static const video_poke_interface_t d3d10_poke_interface = { NULL, #endif d3d10_set_filtering, +#ifdef __WINRT__ + NULL, /* get_video_output_size */ + NULL, /* get_video_output_prev */ + NULL, /* get_video_output_next */ +#else d3d10_get_video_output_size, d3d10_get_video_output_prev, d3d10_get_video_output_next, +#endif NULL, /* get_current_framebuffer */ NULL, /* get_proc_address */ d3d10_gfx_set_aspect_ratio, diff --git a/gfx/drivers/d3d11.c b/gfx/drivers/d3d11.c index aeb1418c26..4933f2ee59 100644 --- a/gfx/drivers/d3d11.c +++ b/gfx/drivers/d3d11.c @@ -1827,6 +1827,7 @@ static uint32_t d3d11_get_flags(void *data) return flags; } +#ifdef __WINRT__ static void d3d11_get_video_output_size(void *data, unsigned *width, unsigned *height) { @@ -1846,6 +1847,7 @@ static void d3d11_get_video_output_next(void *data) unsigned height = 0; win32_get_video_output_next(&width, &height); } +#endif static const video_poke_interface_t d3d11_poke_interface = { d3d11_get_flags, @@ -1859,9 +1861,15 @@ static const video_poke_interface_t d3d11_poke_interface = { NULL, #endif d3d11_set_filtering, +#ifdef __WINRT__ + NULL, /* get_video_output_size */ + NULL, /* get_video_output_prev */ + NULL, /* get_video_output_next */ +#else d3d11_get_video_output_size, d3d11_get_video_output_prev, d3d11_get_video_output_next, +#endif NULL, /* get_current_framebuffer */ NULL, /* get_proc_address */ d3d11_gfx_set_aspect_ratio, diff --git a/gfx/drivers/d3d12.c b/gfx/drivers/d3d12.c index 99d7e913cc..2249e2f908 100644 --- a/gfx/drivers/d3d12.c +++ b/gfx/drivers/d3d12.c @@ -1830,6 +1830,7 @@ static uint32_t d3d12_get_flags(void *data) return flags; } +#ifdef __WINRT__ static void d3d12_get_video_output_size(void *data, unsigned *width, unsigned *height) { @@ -1849,6 +1850,7 @@ static void d3d12_get_video_output_next(void *data) unsigned height = 0; win32_get_video_output_next(&width, &height); } +#endif static const video_poke_interface_t d3d12_poke_interface = { d3d12_get_flags, @@ -1862,9 +1864,15 @@ static const video_poke_interface_t d3d12_poke_interface = { NULL, #endif d3d12_set_filtering, +#ifdef __WINRT__ + NULL, /* get_video_output_size */ + NULL, /* get_video_output_prev */ + NULL, /* get_video_output_next */ +#else d3d12_get_video_output_size, d3d12_get_video_output_prev, d3d12_get_video_output_next, +#endif NULL, /* get_current_framebuffer */ NULL, /* get_proc_address */ d3d12_gfx_set_aspect_ratio,