diff --git a/src/video_core/rasterizer_cache/rasterizer_cache.h b/src/video_core/rasterizer_cache/rasterizer_cache.h index 16027fd93..25ea05c6e 100644 --- a/src/video_core/rasterizer_cache/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache/rasterizer_cache.h @@ -38,7 +38,7 @@ RasterizerCache::RasterizerCache(Memory::MemorySystem& memory_, Pica::RegsInternal& regs_, RendererBase& renderer_) : memory{memory_}, custom_tex_manager{custom_tex_manager_}, runtime{runtime_}, regs{regs_}, renderer{renderer_}, resolution_scale_factor{renderer.GetResolutionScaleFactor()}, - filter{Settings::values.texture_filter.GetValue()}, + sample_count{renderer.GetSampleCount()}, filter{Settings::values.texture_filter.GetValue()}, dump_textures{Settings::values.dump_textures.GetValue()}, use_custom_textures{Settings::values.custom_textures.GetValue()} { using TextureConfig = Pica::TexturingRegs::TextureConfig; @@ -108,6 +108,8 @@ void RasterizerCache::TickFrame() { } UnregisterAll(); } + + sample_count = renderer.GetSampleCount(); } template diff --git a/src/video_core/rasterizer_cache/rasterizer_cache_base.h b/src/video_core/rasterizer_cache/rasterizer_cache_base.h index 13d9682a0..cb7af0939 100644 --- a/src/video_core/rasterizer_cache/rasterizer_cache_base.h +++ b/src/video_core/rasterizer_cache/rasterizer_cache_base.h @@ -228,6 +228,7 @@ private: SurfaceMap dirty_regions; PageMap cached_pages; u32 resolution_scale_factor; + u8 sample_count; u64 frame_tick{}; FramebufferParams fb_params; Settings::TextureFilter filter;