vtkOpenGLIndexBufferObject in OpenGL2 Bug
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When you use an existing Mapper,just change input data ,for example,polydata with lines changes to only with vertexs,render cause crash,the code blew
size_t vtkOpenGLIndexBufferObject::CreatePointIndexBuffer(vtkCellArray *cells) { if (!cells->GetNumberOfCells()) { //add this line //no line data,but IndexCount!=0 this->IndexCount = 0; return 0; } std::vector indexArray; AppendPointIndexBuffer(indexArray, cells, 0); this->Upload(indexArray, vtkOpenGLIndexBufferObject::ElementArrayBuffer); this->IndexCount = indexArray.size(); return indexArray.size(); }