From d31dad8300020880c7e568fefb6cc2fdc8843d64 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 11 Apr 2024 11:54:46 -0600 Subject: [PATCH] Define `sf::Shader` move operations for OpenGL ES backend --- src/SFML/Graphics/Shader.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SFML/Graphics/Shader.cpp b/src/SFML/Graphics/Shader.cpp index 479996fd1..bf2c75996 100644 --- a/src/SFML/Graphics/Shader.cpp +++ b/src/SFML/Graphics/Shader.cpp @@ -969,6 +969,14 @@ Shader::CurrentTextureType Shader::CurrentTexture; Shader::~Shader() = default; +//////////////////////////////////////////////////////////// +Shader::Shader(Shader&& source) noexcept = default; + + +//////////////////////////////////////////////////////////// +Shader& Shader::operator=(Shader&& right) noexcept = default; + + //////////////////////////////////////////////////////////// bool Shader::loadFromFile(const std::filesystem::path& /* filename */, Type /* type */) {