aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2014-09-13 22:55:41 -0400
committerGravatar Lioncash <mathew1800@gmail.com>2014-09-13 22:55:41 -0400
commit6cc7c73b8088d415c2eeae4ecacb7659cd2fd430 (patch)
tree6ec44474be0d41b8dbf37ef91e1ad2f13c679ec2 /src/video_core/pica.h
parentcbdf4d4c8e11f8d1503b440eee1ed2d5f144a73f (diff)
Core: Fix warnings in gpu.cpp
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index cfdc9b93..374cd83c 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -516,12 +516,12 @@ struct Regs {
// Used for debugging purposes, so performance is not an issue here
static std::string GetCommandName(int index) {
std::map<u32, std::string> map;
- Regs regs;
// TODO: MSVC does not support using offsetof() on non-static data members even though this
// is technically allowed since C++11. Hence, this functionality is disabled until
// MSVC properly supports it.
#ifndef _MSC_VER
+ Regs regs;
#define ADD_FIELD(name) \
do { \
map.insert({PICA_REG_INDEX(name), #name}); \