From ab580aa35b9d8e2491040edb070fd2fb84fdf407 Mon Sep 17 00:00:00 2001 From: laurentgom Date: Sun, 14 Jun 2009 11:00:48 +0000 Subject: [PATCH] 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 --- include/SFML/Graphics/PostFX.hpp | 2 +- src/SFML/Graphics/PostFX.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SFML/Graphics/PostFX.hpp b/include/SFML/Graphics/PostFX.hpp index c87537792..bd5a00230 100644 --- a/include/SFML/Graphics/PostFX.hpp +++ b/include/SFML/Graphics/PostFX.hpp @@ -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 diff --git a/src/SFML/Graphics/PostFX.cpp b/src/SFML/Graphics/PostFX.cpp index baa50ad31..793ba879e 100644 --- a/src/SFML/Graphics/PostFX.cpp +++ b/src/SFML/Graphics/PostFX.cpp @@ -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;