Skip to content
Snippets Groups Projects
Commit 4c063200 authored by Victor Poughon's avatar Victor Poughon
Browse files

Merge branch 'release-5.4' into develop

parents 35c3ecaf 5bb7ecf8
No related branches found
No related tags found
No related merge requests found
......@@ -347,8 +347,6 @@ void GlImageActor::Render()
VectorImageType::PixelType mins(3),maxs(3),omins(3),omaxs(3);
mins.Fill(0);
maxs.Fill(255);
double gamma(1.0);
bool useNoData(false);
double noData(0.);
......@@ -363,7 +361,15 @@ void GlImageActor::Render()
maxs[ 1 ] = m_ImageSettings->GetMaxGreen();
maxs[ 2 ] = m_ImageSettings->GetMaxBlue();
gamma = m_ImageSettings->GetGamma();
// MANTIS-1204
// {
double gamma = m_ImageSettings->GetGamma();
gamma =
gamma == 0.0
? std::numeric_limits< double >::max()
: 1.0 / gamma;
// }
if( m_ImageSettings->GetUseNoData() )
noData = m_ImageSettings->GetNoData();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment