From 8d9b24b1b84107c90a77d94c86a810cc068fe073 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 19 Feb 2020 22:14:12 +0100 Subject: Fix rendering of texture with multiple frames --- include/RenderBackend/OpenGL/Texture2D.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/RenderBackend/OpenGL/Texture2D.hpp') diff --git a/include/RenderBackend/OpenGL/Texture2D.hpp b/include/RenderBackend/OpenGL/Texture2D.hpp index 48b613b..c0bfbd2 100644 --- a/include/RenderBackend/OpenGL/Texture2D.hpp +++ b/include/RenderBackend/OpenGL/Texture2D.hpp @@ -11,9 +11,12 @@ namespace amalgine { DISABLE_COPY(Texture2D) public: + Texture2D(); // Not thread safe Texture2D(Image *image); ~Texture2D(); + Texture2D(Texture2D &&other); + Texture2D& operator=(Texture2D &&other); i32 get_texture_id() const { return texture_id; } private: -- cgit v1.2.3