From 0feb0aa7a11034c61005dd7f3edbadb06e4ea472 Mon Sep 17 00:00:00 2001 From: Exverge Date: Sat, 6 Apr 2024 23:15:36 -0400 Subject: [PATCH] metal: todo a fix for NULL images --- src/video_core/renderer_metal/mtl_texture_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_metal/mtl_texture_cache.cpp b/src/video_core/renderer_metal/mtl_texture_cache.cpp index 78a80b3719..8d7c4bef94 100644 --- a/src/video_core/renderer_metal/mtl_texture_cache.cpp +++ b/src/video_core/renderer_metal/mtl_texture_cache.cpp @@ -103,7 +103,7 @@ ImageView::ImageView(TextureCacheRuntime& runtime, const VideoCommon::ImageViewI ImageId image_id_, Image& image) : VideoCommon::ImageViewBase{info, image.info, image_id_, image.gpu_addr} { using Shader::TextureType; - + // TODO: For whatever reason, some images's internal objc objects is NULL, metal-cpp provides no method to check for this texture = image.GetHandle()->retain(); // TODO: create texture view