diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index 7c223abef..a3beebb34 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -326,7 +326,7 @@ Shader& Shader::operator=(Shader&& right) noexcept { return *this; } - // Explicit scope for RAII + if (m_shaderProgram) { // Destroy effect program