Files
test/source/blender/imbuf/intern/oiio/openimageio_api.cpp
Jesse Yurkovich eb99895c97 Fix #116546: Disable openexr core
The new 2.5.x version of OIIO came with the OpenEXR Core library enabled
by default. Unfortunately it's not quite ready to be used so disable it
for now.

The current issue will prevent DWA-A/B from loading correctly. There may
also be a potential ZIPS compression related quirk that upstream is
still working through as well.

Pull Request: https://projects.blender.org/blender/blender/pulls/116591
2023-12-28 00:48:25 +01:00

37 lines
717 B
C++

/* SPDX-FileCopyrightText: 2013 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup openimageio
*/
#include "openimageio_api.h"
#include <OpenImageIO/imageio.h>
#include "BLI_threads.h"
OIIO_NAMESPACE_USING
extern "C" {
void OIIO_init()
{
/* Make OIIO thread pool follow Blender number of threads override. */
const int threads_override = BLI_system_num_threads_override_get();
if (threads_override) {
OIIO::attribute("threads", threads_override);
}
/* As of OpenEXR 3.2.1 there are still issues related to the use of OpenEXR Core. */
OIIO::attribute("openexr:core", 0);
}
int OIIO_getVersionHex()
{
return openimageio_version();
}
} /* extern "C" */