| 716 | } |
| 717 | |
| 718 | bool vtkShaderProgram::DisableAttributeArray(const char* name) |
| 719 | { |
| 720 | GLint location = static_cast<GLint>(this->FindAttributeArray(name)); |
| 721 | if (location == -1) |
| 722 | { |
| 723 | this->Error = "Could not disable attribute " + std::string(name) + ". No such attribute."; |
| 724 | return false; |
| 725 | } |
| 726 | glDisableVertexAttribArray(location); |
| 727 | return true; |
| 728 | } |
| 729 | |
| 730 | #define BUFFER_OFFSET(i) (reinterpret_cast<char*>(i)) |
| 731 |
nothing calls this directly
no test coverage detected