| 1828 | } |
| 1829 | |
| 1830 | int vtkOpenGLState::GetTextureUnitForTexture(vtkTextureObject* texture) |
| 1831 | { |
| 1832 | // Only deactivate if it isn't already there |
| 1833 | typedef std::map<const vtkTextureObject*, int>::const_iterator TRIter; |
| 1834 | TRIter found = this->TextureResourceIds.find(texture); |
| 1835 | if (found != this->TextureResourceIds.end()) |
| 1836 | { |
| 1837 | return found->second; |
| 1838 | } |
| 1839 | |
| 1840 | return -1; |
| 1841 | } |
| 1842 | |
| 1843 | void vtkOpenGLState::VerifyNoActiveTextures() |
| 1844 | { |
no test coverage detected