mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
20 lines
504 B
Diff
20 lines
504 B
Diff
diff --git a/src/System/window.cpp b/src/System/window.cpp
|
|
index e9a099a..e3f6de9 100644
|
|
--- a/src/System/window.cpp
|
|
+++ b/src/System/window.cpp
|
|
@@ -308,12 +308,12 @@ namespace window {
|
|
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();
|