summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2017-01-27 07:43:54 +0100
committerdegasus <wickmarkus@web.de>2017-01-27 07:49:47 +0100
commitba1decf7bc84d63fa148b0c4e5b930c3c6a7c53f (patch)
tree518f7b890ffb3e6ed29e054067c377fe882257cd /Source
parent017e8050b64ca86ce6ca91092b07bc078bb0ba75 (diff)
PixelEngine: Use a DirectRead for the token.
No need to call a std::function, and a few games poll this value very often.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/PixelEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp
index 8a29f152e9..9c4282170b 100644
--- a/Source/Core/VideoCommon/PixelEngine.cpp
+++ b/Source/Core/VideoCommon/PixelEngine.cpp
@@ -224,8 +224,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
}));
// Token register, readonly.
- mmio->Register(base | PE_TOKEN_REG, MMIO::ComplexRead<u16>([](u32) { return s_token; }),
- MMIO::InvalidWrite<u16>());
+ mmio->Register(base | PE_TOKEN_REG, MMIO::DirectRead<u16>(&s_token), MMIO::InvalidWrite<u16>());
// BBOX registers, readonly and need to update a flag.
for (int i = 0; i < 4; ++i)