| 433 | } |
| 434 | |
| 435 | void Program::addUniform(AbstractUniform * uniform) |
| 436 | { |
| 437 | assert(uniform != nullptr); |
| 438 | |
| 439 | ref_ptr<AbstractUniform>& uniformReference = m_uniforms[uniform->identity()]; |
| 440 | |
| 441 | if (uniformReference) |
| 442 | { |
| 443 | uniformReference->deregisterProgram(this); |
| 444 | } |
| 445 | |
| 446 | uniformReference = uniform; |
| 447 | |
| 448 | uniform->registerProgram(this); |
| 449 | |
| 450 | if (m_linked) |
| 451 | { |
| 452 | uniform->update(this, true); |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | void Program::updateUniforms() const |
| 457 | { |
nothing calls this directly
no test coverage detected