Removed Shader::unbind (was not used internally, less consistent with sf::Texture and could be confusing for users)
This commit is contained in:
parent
4c04a0ce8f
commit
121cfeb6a3
@ -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
|
||||
///
|
||||
|
@ -429,15 +429,6 @@ void Shader::bind() const
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void Shader::unbind() const
|
||||
{
|
||||
ensureGlContext();
|
||||
|
||||
glCheck(glUseProgramObjectARB(0));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
bool Shader::isAvailable()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user