mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 19:34:02 +02:00
prevent rendering HUD elements in secondary camera
This commit is contained in:
parent
ea38b32dea
commit
163de649bf
1 changed files with 5 additions and 0 deletions
|
@ -438,6 +438,11 @@ void CompositeHUD::run(const RenderContextPointer& renderContext) {
|
|||
assert(renderContext->args);
|
||||
assert(renderContext->args->_context);
|
||||
|
||||
// We do not want to render HUD elements in secondary camera
|
||||
if (renderContext->args->_renderMode == RenderArgs::RenderMode::SECONDARY_CAMERA_RENDER_MODE) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Grab the HUD texture
|
||||
gpu::doInBatch(renderContext->args->_context, [&](gpu::Batch& batch) {
|
||||
if (renderContext->args->_hudOperator) {
|
||||
|
|
Loading…
Reference in a new issue