| 133 | //============================================================================// |
| 134 | |
| 135 | static void UpdateMinElement(int maxElem) { |
| 136 | if (maxElements.empty()) { |
| 137 | minElements = 0; |
| 138 | return; |
| 139 | } |
| 140 | if (minElements > maxElem) { |
| 141 | minElements = maxElem; |
| 142 | return; |
| 143 | } |
| 144 | minElements = 1234567890; |
| 145 | std::map<GLenum, int>::const_iterator it; |
| 146 | for (it = maxElements.begin(); it != maxElements.end(); ++it) { |
| 147 | if (minElements > it->second) { |
| 148 | minElements = it->second; |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | |
| 154 | //============================================================================// |
no test coverage detected