mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 07:59:02 -05:00 
			
		
		
		
	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:
		| @@ -77,7 +77,7 @@ void OGLBufferCache::Unmap() { | ||||
|     stream_buffer.Unmap(buffer_offset - buffer_offset_base); | ||||
| } | ||||
|  | ||||
| GLuint OGLBufferCache::GetHandle() { | ||||
| GLuint OGLBufferCache::GetHandle() const { | ||||
|     return stream_buffer.GetHandle(); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -41,7 +41,7 @@ public: | ||||
|     void Map(size_t max_size); | ||||
|     void Unmap(); | ||||
|  | ||||
|     GLuint GetHandle(); | ||||
|     GLuint GetHandle() const; | ||||
|  | ||||
| protected: | ||||
|     void AlignBuffer(size_t alignment); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lioncash
					Lioncash