瀏覽代碼

texture_cache: Ensure has_blacklisted is always initialized

Resolves a -Wmaybe_uninitialized warning
Lioncash 4 年之前
父節點
當前提交
e015dc8264
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video_core/texture_cache/texture_cache.h

+ 1 - 1
src/video_core/texture_cache/texture_cache.h

@@ -343,7 +343,7 @@ template <bool has_blacklists>
 void TextureCache<P>::FillImageViews(DescriptorTable<TICEntry>& table,
                                      std::span<ImageViewId> cached_image_view_ids,
                                      std::span<ImageViewInOut> views) {
-    bool has_blacklisted;
+    bool has_blacklisted = false;
     do {
         has_deleted_images = false;
         if constexpr (has_blacklists) {