Skip to content
Snippets Groups Projects
Commit 8d685a29 authored by Lioncash's avatar Lioncash
Browse files

gl_buffer_cache: Make GetHandle() a const member function

GetHandle() internally calls GetHandle() on the stream_buffer instance,
which is a const member function, so this can be made const as well.
parent 14230fe2
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ void OGLBufferCache::Unmap() { ...@@ -77,7 +77,7 @@ void OGLBufferCache::Unmap() {
stream_buffer.Unmap(buffer_offset - buffer_offset_base); stream_buffer.Unmap(buffer_offset - buffer_offset_base);
} }
GLuint OGLBufferCache::GetHandle() { GLuint OGLBufferCache::GetHandle() const {
return stream_buffer.GetHandle(); return stream_buffer.GetHandle();
} }
......
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
void Map(size_t max_size); void Map(size_t max_size);
void Unmap(); void Unmap();
GLuint GetHandle(); GLuint GetHandle() const;
protected: protected:
void AlignBuffer(size_t alignment); void AlignBuffer(size_t alignment);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment