OIIO: added support for OIIO 1.x

OIIO 2.x uses std::unique_ptr while 1.x uses raw pointers. Olive can now handle
both, manually destroying the raw pointers when necessary if running on OIIO
1.x.
This commit is contained in:
itsmattkc
2020-01-26 11:33:45 +11:00
parent 05c25c8713
commit 8b0c7edfec
4 changed files with 16 additions and 1 deletions
+3
View File
@@ -139,6 +139,9 @@ void OIIODecoder::Close()
{
if (image_ != nullptr) {
image_->close();
#if OIIO_VERSION < 10903
OIIO::ImageInput::destroy(image_);
#endif
image_ = nullptr;
}