Fix build with Visual Studio
This commit is contained in:
parent
c7ed5559a0
commit
dde06909f0
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue