Removed Shader::unbind (was not used internally, less consistent with sf::Texture and could be confusing for users)

This commit is contained in:
Laurent Gomila 2012-10-20 23:38:39 +02:00
parent 4c04a0ce8f
commit 121cfeb6a3
2 changed files with 0 additions and 24 deletions

View File

@ -457,26 +457,11 @@ public :
/// window.setActive();
/// shader.bind();
/// ... render OpenGL geometry ...
/// shader.unbind();
/// \endcode
///
/// \see unbind
///
////////////////////////////////////////////////////////////
void bind() const;
////////////////////////////////////////////////////////////
/// \brief Unbind the shader (deactivate it)
///
/// This function is normally for internal use only, unless
/// you want to use the shader with a custom OpenGL rendering
/// instead of a SFML drawable.
///
/// \see bind
///
////////////////////////////////////////////////////////////
void unbind() const;
////////////////////////////////////////////////////////////
/// \brief Tell whether or not the system supports shaders
///

View File

@ -429,15 +429,6 @@ void Shader::bind() const
}
////////////////////////////////////////////////////////////
void Shader::unbind() const
{
ensureGlContext();
glCheck(glUseProgramObjectARB(0));
}
////////////////////////////////////////////////////////////
bool Shader::isAvailable()
{