Fix build with Visual Studio

This commit is contained in:
Jyrki Vesterinen 2017-07-23 10:51:50 +03:00 committed by Charles Dang
parent c7ed5559a0
commit dde06909f0
2 changed files with 7 additions and 1 deletions

View file

@ -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)

View file

@ -69,7 +69,7 @@ public:
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
{