sdl/texture: remove null() in favour of an explicit bool conversion.

It was not used anywhere anyway.
This commit is contained in:
Tommy 2022-05-28 14:30:10 +12:00
parent ac45e4be16
commit e2d059daae
2 changed files with 3 additions and 3 deletions

View File

@ -247,7 +247,7 @@ bool halo_impl::effect::render()
void halo_impl::effect::unrender()
{
if (tex_ == nullptr || buffer_ == nullptr) {
if (tex_ || buffer_) {
return;
}

View File

@ -80,9 +80,9 @@ public:
return texture_.get();
}
bool null() const
explicit operator bool() const
{
return texture_ == nullptr;
return texture_ != nullptr;
}
private: