diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-12-14 11:02:24 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-12-14 11:02:26 -0500 |
| commit | 6d394d03febbc6c106f8d802db833e0d0a55cff9 (patch) | |
| tree | d1543d798740a02dc57d5fcc8ddc99d4c76b3f0b /Source/Core | |
| parent | 2dcd058f7d87a0a95289b23473ae0e7321005110 (diff) | |
Common/GLContext: Make member functions const qualified where applicable
These don't modify object state, so they can be const qualified.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/GL/GLContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/GL/GLContext.h b/Source/Core/Common/GL/GLContext.h index 074ea3cc6d..40cdc776c1 100644 --- a/Source/Core/Common/GL/GLContext.h +++ b/Source/Core/Common/GL/GLContext.h @@ -24,11 +24,11 @@ public: virtual ~GLContext(); - Mode GetMode() { return m_opengl_mode; } + Mode GetMode() const { return m_opengl_mode; } bool IsGLES() const { return m_opengl_mode == Mode::OpenGLES; } - u32 GetBackBufferWidth() { return m_backbuffer_width; } - u32 GetBackBufferHeight() { return m_backbuffer_height; } + u32 GetBackBufferWidth() const { return m_backbuffer_width; } + u32 GetBackBufferHeight() const { return m_backbuffer_height; } virtual bool IsHeadless() const; |
