1
0
Fork 1
forked from suyu/suyu

texture_cache: Ensure has_blacklisted is always initialized

Resolves a -Wmaybe_uninitialized warning
This commit is contained in:
Lioncash 2022-02-02 14:12:31 -05:00
parent 7367e55d1d
commit e015dc8264

View file

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