From 370062306d3ae0c4ddde923c91154b612837fece Mon Sep 17 00:00:00 2001 From: Belinsky-L-V Date: Fri, 22 Jan 2021 17:04:54 +0100 Subject: [PATCH] Fix metal texture storage mode on mac catalyst --- backends/imgui_impl_metal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_metal.mm b/backends/imgui_impl_metal.mm index 8a6f7e7dc159..bbf71473c67c 100644 --- a/backends/imgui_impl_metal.mm +++ b/backends/imgui_impl_metal.mm @@ -238,7 +238,7 @@ - (void)makeFontTextureWithDevice:(id)device height:(NSUInteger)height mipmapped:NO]; textureDescriptor.usage = MTLTextureUsageShaderRead; -#if TARGET_OS_OSX +#if TARGET_OS_OSX || TARGET_OS_MACCATALYST textureDescriptor.storageMode = MTLStorageModeManaged; #else textureDescriptor.storageMode = MTLStorageModeShared;