Commit 229a3569 authored by Robert Menzel's avatar Robert Menzel

fixed option not to include OpenEXR loading

parent 6873cc20
......@@ -25,11 +25,15 @@
#include <QImageWriter>
#endif
// EXR:
#ifndef ACGL_BUILD_WITH_EXR
#define ACGL_BUILD_WITH_EXR
#endif
//
// OpenEXR:
// Only compile with OpenEXR support if explicitly wanted so.
// Note that the application has to be linked to libIlmImf and libIex and the include path has to be set.
// (in your CMakeLists.txt add:
// ADD_DEFINITIONS(-DACGL_BUILD_WITH_EXR)
// ADD_DEFINITIONS(-I"/usr/include/OpenEXR/")
// SET(LIBRARIES ${LIBRARIES} "-lIlmImf -lIex")
//
#ifdef ACGL_BUILD_WITH_EXR
//#include <ImfInputFile.h>
#include <ImfRgbaFile.h>
......@@ -250,7 +254,7 @@ SharedTextureData loadTextureDataFromRGBE(const std::string &_filename)
SharedTextureData loadTextureDataFromEXR(const std::string &_filename)
{
#ifndef ACGL_BUILD_WITH_EXR
error() << "can't load EXR file " << _filename << " ACGL was not build with EXR support" << endl;
error() << "can't load EXR file " << _filename << " ACGL was not build with EXR support" << std::endl;
return SharedTextureData();
#else
SharedTextureData data = SharedTextureData( new TextureData() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment