diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-06-15 14:25:16 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-06-15 14:45:30 -0400 |
| commit | de9c5fd375dcc56bdce817b0bdefadb9f2bdac94 (patch) | |
| tree | 09e49e7e23482d45dc54411375bd3185786c8302 /Source/Core/VideoCommon/Fifo.cpp | |
| parent | bd85d63c623a7ee005c806c43f1a1d6ebbb47efb (diff) | |
ConfigManager: Convert GPUDeterminismMode into an enum class
Makes the values strongly-typed and gets more identifiers out of the
global namespace.
We are forced to use anything that is not "None" to mean none, because
X11 is garbage in that it has:
\#define None 0L
Because clearly no one else will ever want to use that identifier for
anything in their own code (and is why you should prefix literally
any and all preprocessor macros you expose to library users in public
headers).
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Fifo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index 34f8def354..c0cbf234ab 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -498,13 +498,13 @@ void UpdateWantDeterminism(bool want) bool gpu_thread = false; switch (param.m_GPUDeterminismMode) { - case GPU_DETERMINISM_AUTO: + case GPUDeterminismMode::Auto: gpu_thread = want; break; - case GPU_DETERMINISM_NONE: + case GPUDeterminismMode::Disabled: gpu_thread = false; break; - case GPU_DETERMINISM_FAKE_COMPLETION: + case GPUDeterminismMode::FakeCompletion: gpu_thread = true; break; } |
