Skip to content

Commit 2bcebf1

Browse files
authored
Merge pull request #382 from Another52/master
Add const overload for GetTexture method in RenderTexture
2 parents 8a822d2 + aa5a281 commit 2bcebf1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/RenderTexture.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class RenderTexture : public ::RenderTexture {
4848
* Get the color buffer attachment texture.
4949
*/
5050
TextureUnmanaged GetTexture() { return texture; }
51+
[[nodiscard]] TextureUnmanaged GetTexture() const { return texture; }
5152

5253
void SetTexture(const ::Texture& newTexture) { texture = newTexture; }
5354

0 commit comments

Comments
 (0)