From f87cd472b02e50b069f26546a5a1d1b75163df87 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 11 Sep 2017 16:17:17 +0200 Subject: [PATCH] Try. Waiting KW feedback --- src/VTKViewer/VTKViewer_Texture.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2