aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-12-06 19:34:24 -0300
committerGitHub <noreply@github.com>2020-12-06 19:34:24 -0300
commit216928a60bb5b3d1b4dbe8e7059946937e5c4dfd (patch)
treed8e2caec256769738f83d36c4893e3a7a78baab2 /src
parentee884dbd69c65ee26ca3ad5e9a21c37ec7dc614c (diff)
parent20f4c9175a6ab72b3b421bb5c909f35294284f3c (diff)
Merge pull request #5141 from comex/xx-true-false
maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict
Diffstat (limited to 'src')
-rw-r--r--src/video_core/engines/maxwell_dma.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/video_core/engines/maxwell_dma.h b/src/video_core/engines/maxwell_dma.h
index 17bd280c4f..3c59eeb13b 100644
--- a/src/video_core/engines/maxwell_dma.h
+++ b/src/video_core/engines/maxwell_dma.h
@@ -72,11 +72,13 @@ public:
struct RenderEnable {
enum class Mode : u32 {
- FALSE = 0,
- TRUE = 1,
- CONDITIONAL = 2,
- RENDER_IF_EQUAL = 3,
- RENDER_IF_NOT_EQUAL = 4,
+ // Note: This uses Pascal case in order to avoid the identifiers
+ // FALSE and TRUE, which are reserved on Darwin.
+ False = 0,
+ True = 1,
+ Conditional = 2,
+ RenderIfEqual = 3,
+ RenderIfNotEqual = 4,
};
PackedGPUVAddr address;