(DXGI/HDR) Move global to only function that requires it

This commit is contained in:
libretroadmin 2022-05-31 21:03:38 +02:00
parent 06d62cf86a
commit b8d9070c9b

View File

@ -40,9 +40,6 @@ const GUID DECLSPEC_SELECTANY libretro_IID_IDXGIOutput6 = { 0x068346e8,0xaaec,
#endif
#ifdef HAVE_DXGI_HDR
/* TODO/FIXME - globals */
static DXGI_HDR_METADATA_HDR10 g_hdr10_meta_data = {0};
typedef enum hdr_root_constants
{
HDR_ROOT_CONSTANTS_REFERENCE_WHITE_NITS = 0,
@ -662,6 +659,7 @@ void dxgi_set_hdr_metadata(
float max_fall
)
{
static DXGI_HDR_METADATA_HDR10 g_hdr10_meta_data = {0};
static const display_chromaticities_t
display_chromaticity_list[] =
{