Prevent using a temporary sf::Texture with sf::Shader

This commit is contained in:
Chris Thrasher 2023-01-05 17:52:25 -07:00
parent 0c2f7da9f9
commit 2d0c923a53

View File

@ -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
///