libgegl/libgegl-0.4.8-upstream-openexr-2.3.0.patch

47 lines
1.9 KiB
Diff
Raw Permalink Normal View History

From c1c3541caab485384087bbbcf1c83ef2d5bd4d43 Mon Sep 17 00:00:00 2001
From: Hussam Al-Tayeb <me@hussam.eu.org>
Date: Wed, 22 Aug 2018 14:55:31 +0200
Subject: [PATCH] exr-save: avoid hard-coding Imath_2_2 name space
---
operations/external/exr-save.cc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/operations/external/exr-save.cc b/operations/external/exr-save.cc
index b2032046c..018e5d9af 100644
--- a/operations/external/exr-save.cc
+++ b/operations/external/exr-save.cc
@@ -145,10 +145,10 @@ write_tiled_exr (const float *pixels,
&blue[0], &blue[1],
NULL, NULL, NULL);
{
- Imf::Chromaticities c1 (Imath_2_2::V2f(red[0],red[1]),
- Imath_2_2::V2f(green[0],green[1]),
- Imath_2_2::V2f(blue[0],blue[1]),
- Imath_2_2::V2f(wp[0],wp[1]));
+ Imf::Chromaticities c1 (Imath::V2f(red[0],red[1]),
+ Imath::V2f(green[0],green[1]),
+ Imath::V2f(blue[0],blue[1]),
+ Imath::V2f(wp[0],wp[1]));
Imf::addChromaticities (header, c1);
}
}
@@ -184,10 +184,10 @@ write_scanline_exr (const float *pixels,
&green[0], &green[1],
&blue[0], &blue[1],
NULL, NULL, NULL);
- Imf::Chromaticities c1 (Imath_2_2::V2f(red[0],red[1]),
- Imath_2_2::V2f(green[0],green[1]),
- Imath_2_2::V2f(blue[0],blue[1]),
- Imath_2_2::V2f(wp[0],wp[1]));
+ Imf::Chromaticities c1 (Imath::V2f(red[0],red[1]),
+ Imath::V2f(green[0],green[1]),
+ Imath::V2f(blue[0],blue[1]),
+ Imath::V2f(wp[0],wp[1]));
Imf::addChromaticities (header, c1);
}
--
2.18.1