Commits

Jostein  committed 7e5678b

Bug fix: Force setting the color for all indices on TriangleStrips, since ATI always returns black on previous equal color.

  • Participants
  • Parent commits 906efe8

Comments (0)

Files changed (1)

File src/bundles/SoMaterialBundle.cpp

 SoMaterialBundle::send(const int index, const SbBool betweenbeginend)
 {
   if (this->firsttime) this->setupElements(betweenbeginend);
-  if (index != this->currindex || (this->coloronly & FLAG_NVIDIA_BUG)) {
+  //if (index != this->currindex || (this->coloronly & FLAG_NVIDIA_BUG)) {
+  // Bug fix: Force setting the color for all indices. ATI cards do not
+  // use the previous color if it is reported as equal, but sets
+  // it to black. - jostein 20/09/2010
     this->lazyelem->sendDiffuseByIndex(index);    
     this->currindex = index;
-  }
+  //}
 }
 
 /*!