Skip to content

Commit aa5a281

Browse files
authored
Add const overload for GetTexture method
1 parent 8a822d2 commit aa5a281

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)