mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-26 17:12:37 -06:00
rasterizer_cache: Make cache reset on resolution/filter change more explicit
This commit is contained in:
parent
14aea56fa1
commit
cc5a88a864
1 changed files with 6 additions and 4 deletions
|
@ -584,10 +584,12 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces(
|
|||
const auto& regs = Pica::g_state.regs;
|
||||
const auto& config = regs.framebuffer.framebuffer;
|
||||
|
||||
// update resolution_scale_factor and reset cache if changed
|
||||
if ((resolution_scale_factor != VideoCore::GetResolutionScaleFactor()) ||
|
||||
(VideoCore::g_texture_filter_update_requested.exchange(false) &&
|
||||
texture_filterer->Reset(Settings::values.texture_filter_name, resolution_scale_factor))) {
|
||||
// Update resolution_scale_factor and reset cache if changed
|
||||
const bool resolution_scale_changed = resolution_scale_factor != VideoCore::GetResolutionScaleFactor();
|
||||
const bool texture_filter_changed = VideoCore::g_texture_filter_update_requested.exchange(false)
|
||||
&& texture_filterer->Reset(Settings::values.texture_filter_name, VideoCore::GetResolutionScaleFactor());
|
||||
|
||||
if (resolution_scale_changed || texture_filter_changed) {
|
||||
resolution_scale_factor = VideoCore::GetResolutionScaleFactor();
|
||||
FlushAll();
|
||||
while (!surface_cache.empty())
|
||||
|
|
Loading…
Reference in a new issue