From fa7edc4a9ce261ef478f0efb13a07408d6b501e1 Mon Sep 17 00:00:00 2001 From: emufan4568 Date: Sat, 10 Sep 2022 14:09:24 +0300 Subject: [PATCH] rasterizer_accelerated: Zero intialize cached_pages * Resolves random crashes because count takes random values --- src/video_core/rasterizer_accelerated.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/rasterizer_accelerated.h b/src/video_core/rasterizer_accelerated.h index 4f3860966..b5bf1487d 100644 --- a/src/video_core/rasterizer_accelerated.h +++ b/src/video_core/rasterizer_accelerated.h @@ -14,6 +14,6 @@ public: void UpdatePagesCachedCount(PAddr addr, u32 size, int delta) override; private: - std::array cached_pages; + std::array cached_pages{}; }; } // namespace VideoCore