From 6d394d03febbc6c106f8d802db833e0d0a55cff9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 14 Dec 2018 11:02:24 -0500 Subject: [PATCH] Common/GLContext: Make member functions const qualified where applicable These don't modify object state, so they can be const qualified. --- Source/Core/Common/GL/GLContext.h | 6 +++--- 1 file 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;