yuzu-emu
/
yuzu
Archived
1
0
Fork 0

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.
This commit is contained in:
Lioncash 2018-09-06 14:58:15 -04:00
parent 14230fe2af
commit 8d685a29bc
2 changed files with 2 additions and 2 deletions

View File

@ -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();
} }

View File

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