diff --git a/include/SFML/Graphics/Shader.hpp b/include/SFML/Graphics/Shader.hpp index 9a944ffb..acfae025 100644 --- a/include/SFML/Graphics/Shader.hpp +++ b/include/SFML/Graphics/Shader.hpp @@ -496,6 +496,12 @@ public: //////////////////////////////////////////////////////////// void setUniform(const std::string& name, const Texture& texture); + //////////////////////////////////////////////////////////// + /// \brief Disallow setting from a temporary texture + /// + //////////////////////////////////////////////////////////// + void setUniform(const std::string& name, Texture&& texture) = delete; + //////////////////////////////////////////////////////////// /// \brief Specify current texture as \p sampler2D uniform ///