Browse Source

bug fix (set true for all cores)

Alec Jacobson 5 years ago
parent
commit
8f33348c29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/opengl/ViewerData.cpp

+ 1 - 1
include/igl/opengl/ViewerData.cpp

@@ -299,7 +299,7 @@ IGL_INLINE void igl::opengl::ViewerData::set_colormap(const Eigen::MatrixXd & CM
     (CM.col(2)*255.0).cast<unsigned char>();
   set_colors(Eigen::RowVector3d(1,1,1));
   set_texture(R,G,B);
-  show_texture = true;
+  show_texture = ~unsigned(0);
   meshgl.tex_filter = GL_NEAREST;
   meshgl.tex_wrap = GL_CLAMP_TO_EDGE;
 }