We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a822d2 + aa5a281 commit 2bcebf1Copy full SHA for 2bcebf1
1 file changed
include/RenderTexture.hpp
@@ -48,6 +48,7 @@ class RenderTexture : public ::RenderTexture {
48
* Get the color buffer attachment texture.
49
*/
50
TextureUnmanaged GetTexture() { return texture; }
51
+ [[nodiscard]] TextureUnmanaged GetTexture() const { return texture; }
52
53
void SetTexture(const ::Texture& newTexture) { texture = newTexture; }
54
0 commit comments