diff options
| author | 2014-12-04 20:42:53 +0100 | |
|---|---|---|
| committer | 2014-12-09 16:37:34 +0100 | |
| commit | 0305435edd9d6de3a2b245d60bcbf339d6dda2ff (patch) | |
| tree | bc1872db4bcab8daf3d7750990b8450c1e06cef0 | |
| parent | citra-qt: Rename "Stop Tracing" to "Finish Tracing". (diff) | |
| download | yuzu-0305435edd9d6de3a2b245d60bcbf339d6dda2ff.tar.gz yuzu-0305435edd9d6de3a2b245d60bcbf339d6dda2ff.tar.xz yuzu-0305435edd9d6de3a2b245d60bcbf339d6dda2ff.zip | |
Pica: Re-enable command names on MSVC.
The affected code is no longer limited by compiler support on that platform.
| -rw-r--r-- | src/video_core/pica.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index b463a32ef..e7ca38978 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h | |||
| @@ -536,10 +536,6 @@ struct Regs { | |||
| 536 | static std::string GetCommandName(int index) { | 536 | static std::string GetCommandName(int index) { |
| 537 | std::map<u32, std::string> map; | 537 | std::map<u32, std::string> map; |
| 538 | 538 | ||
| 539 | // TODO: MSVC does not support using offsetof() on non-static data members even though this | ||
| 540 | // is technically allowed since C++11. Hence, this functionality is disabled until | ||
| 541 | // MSVC properly supports it. | ||
| 542 | #ifndef _MSC_VER | ||
| 543 | Regs regs; | 539 | Regs regs; |
| 544 | #define ADD_FIELD(name) \ | 540 | #define ADD_FIELD(name) \ |
| 545 | do { \ | 541 | do { \ |
| @@ -576,7 +572,6 @@ struct Regs { | |||
| 576 | ADD_FIELD(vs_swizzle_patterns); | 572 | ADD_FIELD(vs_swizzle_patterns); |
| 577 | 573 | ||
| 578 | #undef ADD_FIELD | 574 | #undef ADD_FIELD |
| 579 | #endif // _MSC_VER | ||
| 580 | 575 | ||
| 581 | // Return empty string if no match is found | 576 | // Return empty string if no match is found |
| 582 | return map[index]; | 577 | return map[index]; |