diff options
| author | Mat M <mathew1800@gmail.com> | 2017-01-27 01:55:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-27 01:55:53 -0500 |
| commit | cf18ed0a5233aeaec78614218d2a03c0c4d38518 (patch) | |
| tree | 518f7b890ffb3e6ed29e054067c377fe882257cd /Source/Core/VideoCommon/PixelEngine.cpp | |
| parent | 017e8050b64ca86ce6ca91092b07bc078bb0ba75 (diff) | |
| parent | ba1decf7bc84d63fa148b0c4e5b930c3c6a7c53f (diff) | |
Merge pull request #4765 from degasus/token
PixelEngine: Use a DirectRead for the token.
Diffstat (limited to 'Source/Core/VideoCommon/PixelEngine.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelEngine.cpp | 3 |
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) |
