VideoCommon/PixelEngine: Refactor to class, move to Core::System.

This commit is contained in:
Admiral H. Curtiss
2022-12-10 16:35:07 +01:00
parent 82e87cf7b9
commit ec8aaf1f30
10 changed files with 275 additions and 228 deletions

View File

@ -9,6 +9,7 @@
#include "Common/GL/GLContext.h"
#include "Core/HW/Memmap.h"
#include "Core/System.h"
#include "VideoBackends/Software/EfbCopy.h"
#include "VideoBackends/Software/EfbInterface.h"
@ -136,7 +137,8 @@ u32 SWRenderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
value = (color >> 8) | (color & 0xff) << 24;
// check what to do with the alpha channel (GX_PokeAlphaRead)
PixelEngine::AlphaReadMode alpha_read_mode = PixelEngine::GetAlphaReadMode();
PixelEngine::AlphaReadMode alpha_read_mode =
Core::System::GetInstance().GetPixelEngine().GetAlphaReadMode();
if (alpha_read_mode == PixelEngine::AlphaReadMode::ReadNone)
{