From: Anthony Geay Date: Mon, 11 Sep 2017 14:17:17 +0000 (+0200) Subject: Try. Waiting KW feedback X-Git-Tag: V8_4_0a2~2^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2a6c8ee1826e1c08ded87cd581ec7072c5312d2;p=modules%2Fgui.git Try. Waiting KW feedback --- diff --git a/src/VTKViewer/VTKViewer_Texture.cxx b/src/VTKViewer/VTKViewer_Texture.cxx index 7b20cd5e1..c6faba0b1 100644 --- a/src/VTKViewer/VTKViewer_Texture.cxx +++ b/src/VTKViewer/VTKViewer_Texture.cxx @@ -534,7 +534,7 @@ void VTKViewer_Texture::Load(vtkRenderer *ren) // make sure using unsigned char data of color scalars type if (this->IsDepthTexture != 1 && - (this->MapColorScalarsThroughLookupTable || + (this->ColorMode || scalars->GetDataType() != VTK_UNSIGNED_CHAR )) { dataPtr = this->MapScalarsToColors (scalars);