Skip to content

Commit

Permalink
Fix useless warning in addTextureMesh
Browse files Browse the repository at this point in the history
If only one texture is used, display a warning about the GPU allowing only one texture is useless :)
  • Loading branch information
the-glu committed Jun 18, 2015
1 parent 5ad8000 commit c550f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visualization/src/pcl_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3290,7 +3290,7 @@ pcl::visualization::PCLVisualizer::addTextureMesh (const pcl::TextureMesh &mesh,
} // end of multi texturing
else
{
if (!supported || texture_units < 2)
if ((mesh.tex_materials.size () > 1) && (!supported || texture_units < 2))
PCL_WARN ("[PCLVisualizer::addTextureMesh] Your GPU doesn't support multi texturing. "
"Will use first one only!\n");

Expand Down

0 comments on commit c550f3a

Please sign in to comment.