From a97d0d6a19b5b43e3c53081e36f1f1747b6674e6 Mon Sep 17 00:00:00 2001 From: Sylvain BOILARD Date: Wed, 23 Jan 2013 02:02:47 +0100 Subject: [PATCH] Use sf::Shader::Bind() correctly after latest update of the SFML's API. --- src/System/window.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/System/window.cpp b/src/System/window.cpp index e9a099a..3ffcf65 100644 --- a/src/System/window.cpp +++ b/src/System/window.cpp @@ -307,13 +307,11 @@ namespace window { window_.setActive(true); glEnable(GL_TEXTURE_2D); - if (shader) - shader->bind(); + sf::Shader::bind(shader); window_.draw(toBeDrawn, states); - if (shader) - shader->unbind(); + sf::Shader::bind(NULL); window_.popGLStates(); glPopMatrix();