From 8fd67a0d992761cbae627f6a11af0dfa0ecd3e2b Mon Sep 17 00:00:00 2001 From: ZXShady <153229951+ZXShady@users.noreply.github.com> Date: Fri, 4 Oct 2024 03:25:56 +0100 Subject: [PATCH] Remove wrong comment There is no explicit scope made specifically for an RAII variable, so I removed the comment --- src/SFML/Graphics/Shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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