Merge pull request #7621 from lioncash/const

Common/GLContext: Make member functions const qualified where applicable
This commit is contained in:
Tilka 2018-12-14 18:53:10 +00:00 committed by GitHub
commit 3fa81f39fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;