Hi Niklas,

Am Freitag, 29. April 2016 13:00:40 UTC+2 schrieb Niklas Mischkulnig:
>
> Unfortunately neither is working.
>

That's strange. Maybe we need to locate the error more precise. I'm 
attaching 2 patches.
Please apply only one at once. If none of the both files prevents the 
crashes, I have searched at the wrong place.

Thomas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/e769c463-11e9-4d8b-a1d5-7acda94c6e28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/hugin1/hugin/TextureManager.cpp b/src/hugin1/hugin/TextureManager.cpp
--- a/src/hugin1/hugin/TextureManager.cpp
+++ b/src/hugin1/hugin/TextureManager.cpp
@@ -936,23 +936,23 @@
                         hugin_utils::FDiff2D(sx, sy));
                 }
                 // now take color profiles in file and of monitor into account
-                if (transform != NULL)
+                /* if (transform != NULL)
                 {
                     cmsDoTransform(transform, out_img[y], out_img[y], out_img.width());
-                };
+                };*/
             }
         }
         else
         {
             // no photometric correction
-            if (transform != NULL)
+            /* if (transform != NULL)
             {
 #pragma omp parallel for
                 for (int y = 0; y < ho; y++)
                 {
                     cmsDoTransform(transform, out_img[y], out_img[y], out_img.width());
                 };
-            };
+            };*/
         };
         if (transform != NULL)
         {
diff --git a/src/hugin1/hugin/TextureManager.cpp b/src/hugin1/hugin/TextureManager.cpp
--- a/src/hugin1/hugin/TextureManager.cpp
+++ b/src/hugin1/hugin/TextureManager.cpp
@@ -871,7 +871,7 @@
         };
         cmsHTRANSFORM transform = NULL;
         // do color correction only if input image has icc profile or if we found a monitor profile
-        if (inputICC != NULL || huginApp::Get()->HasMonitorProfile())
+        /* if (inputICC != NULL || huginApp::Get()->HasMonitorProfile())
         {
             // check input profile
             if (inputICC != NULL)
@@ -891,7 +891,7 @@
             transform = cmsCreateTransform(inputICC, TYPE_RGB_8,
                 huginApp::Get()->GetMonitorProfile(), TYPE_RGB_8,
                 INTENT_PERCEPTUAL, cmsFLAGS_BLACKPOINTCOMPENSATION);
-        };
+        };*/
         // now perform photometric correction
         if (photometric_correct)
         {

Reply via email to