Move m_prev_efb_format into FramebufferManager

This commit is contained in:
Scott Mansell
2023-01-31 18:13:47 +13:00
parent 9b5397abdb
commit 2cfc02a116
6 changed files with 7 additions and 31 deletions

View File

@ -364,9 +364,9 @@ void OnPixelFormatChange()
if (!g_ActiveConfig.bEFBEmulateFormatChanges)
return;
const auto old_format = g_renderer->GetPrevPixelFormat();
const auto old_format = g_framebuffer_manager->GetPrevPixelFormat();
const auto new_format = bpmem.zcontrol.pixel_format;
g_renderer->StorePixelFormat(new_format);
g_framebuffer_manager->StorePixelFormat(new_format);
DEBUG_LOG_FMT(VIDEO, "pixelfmt: pixel={}, zc={}", new_format, bpmem.zcontrol.zformat);