aboutsummaryrefslogtreecommitdiff
path: root/graphics/openexr/files/patch-exrenvmap_readInputImage.cpp
blob: 4e09ed86a59b42f683f070804b82c1579c5c5516 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- exrenvmap/readInputImage.cpp.orig	2018-08-10 01:35:00 UTC
+++ exrenvmap/readInputImage.cpp
@@ -194,7 +194,7 @@ readSixImages (const char inFileName[],
                    "from the data window of other cube faces.");
         }
 
-        in.setFrameBuffer (pixels - dw.min.x - dw.min.y * w, 1, w);
+        in.setFrameBuffer (ComputeBasePointer (pixels, dw), 1, w);
         in.readPixels (dw.min.y, dw.max.y);
 
         pixels += w * h;