| 190 | } |
| 191 | |
| 192 | void ProgramState::resetUniforms() |
| 193 | { |
| 194 | #if AX_ENABLE_CACHE_TEXTURE_DATA |
| 195 | if (_program == nullptr) |
| 196 | return; |
| 197 | |
| 198 | const auto& uniformLocation = _program->getAllUniformsLocation(); |
| 199 | for (const auto& uniform : uniformLocation) |
| 200 | { |
| 201 | auto location = uniform.second; |
| 202 | auto mappedLocation = _program->getMappedLocation(location); |
| 203 | |
| 204 | // check if current location had been set before |
| 205 | if (_vertexTextureInfos.find(location) != _vertexTextureInfos.end()) |
| 206 | { |
| 207 | _vertexTextureInfos[location].location = mappedLocation; |
| 208 | } |
| 209 | } |
| 210 | #endif |
| 211 | } |
| 212 | |
| 213 | ProgramState::~ProgramState() |
| 214 | { |
no test coverage detected