Move m_prev_efb_format into FramebufferManager

This commit is contained in:
Scott Mansell committed 2023-02-09 18:36:20 +13:00
1 parent 9b5397abdb
commit 2cfc02a116
6 files changed
+7 -31

No files matched your search

+2 -2
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);