| 704 | } |
| 705 | |
| 706 | bool vtkShaderProgram::EnableAttributeArray(const char* name) |
| 707 | { |
| 708 | GLint location = static_cast<GLint>(this->FindAttributeArray(name)); |
| 709 | if (location == -1) |
| 710 | { |
| 711 | this->Error = "Could not enable attribute " + std::string(name) + ". No such attribute."; |
| 712 | return false; |
| 713 | } |
| 714 | glEnableVertexAttribArray(location); |
| 715 | return true; |
| 716 | } |
| 717 | |
| 718 | bool vtkShaderProgram::DisableAttributeArray(const char* name) |
| 719 | { |
no test coverage detected