1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-12-05 12:22:09 -06:00

metal: todo a fix for NULL images

This commit is contained in:
Exverge
2024-04-06 23:15:36 -04:00
parent 32c49173ad
commit 0feb0aa7a1

View File

@@ -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