From af7b0c7b4fff7396b79f3891aa97979155a1e997 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Wed, 31 May 2023 01:31:17 +0200 Subject: [PATCH] early-access version 3623 --- README.md | 2 +- src/video_core/buffer_cache/buffer_cache.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index adbe8d7d7..a91c00b1a 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 3622. +This is the source code for early-access 3623. ## Legal Notice diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 169b57dc6..ea5318dc0 100755 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -63,8 +63,12 @@ void BufferCache

::RunGarbageCollector() { template void BufferCache

::TickFrame() { - // Calculate hits and shots and move hit bits to the right + // Homebrew console apps don't create or bind any channels, so this will be nullptr. + if (!channel_state) { + return; + } + // Calculate hits and shots and move hit bits to the right const u32 hits = std::reduce(channel_state->uniform_cache_hits.begin(), channel_state->uniform_cache_hits.end()); const u32 shots = std::reduce(channel_state->uniform_cache_shots.begin(),