| 376 | } |
| 377 | |
| 378 | void GL46Engine::DisableCBuffers(Shader const* shader, GLuint program) |
| 379 | { |
| 380 | int32_t const index = ConstantBuffer::shaderDataLookup; |
| 381 | for (auto const& cb : shader->GetData(index)) |
| 382 | { |
| 383 | auto const blockIndex = cb.bindPoint; |
| 384 | if (GL_INVALID_INDEX != static_cast<uint32_t>(blockIndex)) |
| 385 | { |
| 386 | auto const unit = mUniformUnitMap.GetUnit(program, blockIndex); |
| 387 | glBindBufferBase(GL_UNIFORM_BUFFER, unit, 0); |
| 388 | mUniformUnitMap.ReleaseUnit(unit); |
| 389 | } |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | void GL46Engine::EnableTBuffers(Shader const*, GLuint) |
| 394 | { |
nothing calls this directly
no test coverage detected