diff --git a/gfx/common/metal/metal_common.h b/gfx/common/metal/metal_common.h index 3b216a619a..0b5020d07b 100644 --- a/gfx/common/metal/metal_common.h +++ b/gfx/common/metal/metal_common.h @@ -52,13 +52,12 @@ typedef NS_ENUM(NSUInteger, RPixelFormat) RPixelFormatB5G6R5Unorm, RPixelFormatBGRA8Unorm, - RPixelFormatBGRX8Unorm, // RetroArch XRGB + RPixelFormatBGRX8Unorm, /* RetroArch XRGB */ RPixelFormatCount, }; extern NSUInteger RPixelFormatToBPP(RPixelFormat format); -extern NSString *NSStringFromRPixelFormat(RPixelFormat format); typedef NS_ENUM(NSUInteger, RTextureFilter) { diff --git a/gfx/common/metal/metal_renderer.m b/gfx/common/metal/metal_renderer.m index 9562976eb9..7ef27e5d85 100644 --- a/gfx/common/metal/metal_renderer.m +++ b/gfx/common/metal/metal_renderer.m @@ -33,6 +33,8 @@ * COMMON */ +static NSString *RPixelStrings[RPixelFormatCount]; + NSUInteger RPixelFormatToBPP(RPixelFormat format) { switch (format) @@ -51,9 +53,7 @@ NSUInteger RPixelFormatToBPP(RPixelFormat format) } } -static NSString *RPixelStrings[RPixelFormatCount]; - -NSString *NSStringFromRPixelFormat(RPixelFormat format) +static NSString *NSStringFromRPixelFormat(RPixelFormat format) { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{