PostFx::SetTexture now takes a const sf::Image*

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1141 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-06-14 11:00:48 +00:00
parent e6483d2165
commit ab580aa35b
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ public :
/// \param Texture : Image to set (pass NULL to use content of current framebuffer)
///
////////////////////////////////////////////////////////////
void SetTexture(const std::string& Name, Image* Texture);
void SetTexture(const std::string& Name, const Image* Texture);
////////////////////////////////////////////////////////////
/// Assignment operator

View File

@ -217,7 +217,7 @@ void PostFX::SetParameter(const std::string& Name, float X, float Y, float Z, fl
////////////////////////////////////////////////////////////
/// Set a texture parameter
////////////////////////////////////////////////////////////
void PostFX::SetTexture(const std::string& Name, Image* Texture)
void PostFX::SetTexture(const std::string& Name, const Image* Texture)
{
// Check that the current texture unit is available
GLint MaxUnits;