diff options
| author | 2014-06-11 21:22:26 +0200 | |
|---|---|---|
| committer | 2014-06-12 06:10:56 -0400 | |
| commit | c34ba380011921a9d984136381c3a65a1e2389d5 (patch) | |
| tree | ae8389bc502133cfdd7eb43c1a0f54ec2aa08904 /src/video_core/gpu_debugger.h | |
| parent | Removed definition of MAX_PATH, this is already defined in common_paths.h. (diff) | |
| download | yuzu-c34ba380011921a9d984136381c3a65a1e2389d5.tar.gz yuzu-c34ba380011921a9d984136381c3a65a1e2389d5.tar.xz yuzu-c34ba380011921a9d984136381c3a65a1e2389d5.zip | |
GPU debugger: Const correctness and build fix.
Diffstat (limited to 'src/video_core/gpu_debugger.h')
| -rw-r--r-- | src/video_core/gpu_debugger.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index 6a1e04244..5d909beba 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h | |||
| @@ -20,9 +20,9 @@ public: | |||
| 20 | // A vector of commands represented by their raw byte sequence | 20 | // A vector of commands represented by their raw byte sequence |
| 21 | struct PicaCommand : public std::vector<u32> | 21 | struct PicaCommand : public std::vector<u32> |
| 22 | { | 22 | { |
| 23 | Pica::CommandHeader& GetHeader() | 23 | const Pica::CommandHeader& GetHeader() const |
| 24 | { | 24 | { |
| 25 | u32& val = at(1); | 25 | const u32& val = at(1); |
| 26 | return *(Pica::CommandHeader*)&val; | 26 | return *(Pica::CommandHeader*)&val; |
| 27 | } | 27 | } |
| 28 | }; | 28 | }; |
| @@ -64,7 +64,7 @@ public: | |||
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | protected: | 66 | protected: |
| 67 | GraphicsDebugger* GetDebugger() | 67 | const GraphicsDebugger* GetDebugger() const |
| 68 | { | 68 | { |
| 69 | return observed; | 69 | return observed; |
| 70 | } | 70 | } |