Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 17320b27 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix build without openexr

Should we make this a required dependency by now?
parent 3fb4c3bc
......@@ -33,8 +33,14 @@
#include "KoColorSpaceRegistry.h"
#include "KoChannelInfo.h"
#include <QGlobalStatic>
#include <KoConfig.h>
#ifdef HAVE_OPENEXR
#include <half.h>
#endif
namespace {
struct DefaultKoColorInitializer
......@@ -383,10 +389,12 @@ QDebug operator<<(QDebug dbg, const KoColor &color)
const quint32 *ptr = reinterpret_cast<const quint32*>(color.data() + ch->pos());
dbg.nospace() << *ptr;
break;
#ifdef HAVE_OPENEXR
} case KoChannelInfo::FLOAT16: {
const half *ptr = reinterpret_cast<const half*>(color.data() + ch->pos());
dbg.nospace() << *ptr;
break;
#endif
} case KoChannelInfo::FLOAT32: {
const float *ptr = reinterpret_cast<const float*>(color.data() + ch->pos());
dbg.nospace() << *ptr;
......
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