mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Prevent using a temporary sf::Texture
with sf::Shader
This commit is contained in:
parent
0c2f7da9f9
commit
2d0c923a53
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user