Skip to content

Commit

Permalink
Fix build with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive authored and Vultraz committed Mar 8, 2018
1 parent 58dfa25 commit 74949b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/sdl/texture.cpp
Expand Up @@ -101,6 +101,12 @@ void texture::assign(SDL_Texture* t)
texture_.reset(t, &cleanup_texture);
}

texture& texture::operator=(texture&& t)
{
texture_ = std::move(t.texture_);
return *this;
}

texture::info::info(SDL_Texture* t)
: format(0)
, access(0)
Expand Down
2 changes: 1 addition & 1 deletion src/sdl/texture.hpp
Expand Up @@ -69,7 +69,7 @@ class texture
texture& operator=(const texture& t) = default;

/** Move assignment. Releases ownership of the managed texture from the passed object. */
texture& operator=(texture&& t) = default;
texture& operator=(texture&& t);

operator SDL_Texture*() const
{
Expand Down

0 comments on commit 74949b8

Please sign in to comment.