Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 1 file). Show all
Unified · Split
| @@ -438,6 +438,11 @@ void CompositeHUD::run(const RenderContextPointer& renderContext) { · 437 unmodified lines | |||
| 438 | assert(renderContext->args); | 438 | assert(renderContext->args); |
| 439 | assert(renderContext->args->_context); | 439 | assert(renderContext->args->_context); |
| 440 | 440 | ||
| 441 | // We do not want to render HUD elements in secondary camera | ||
| 442 | if (renderContext->args->_renderMode == RenderArgs::RenderMode::SECONDARY_CAMERA_RENDER_MODE) { | ||
| 443 | return; | ||
| 444 | } | ||
| 445 | |||
| 441 | // Grab the HUD texture | 446 | // Grab the HUD texture |
| 442 | gpu::doInBatch(renderContext->args->_context, [&](gpu::Batch& batch) { | 447 | gpu::doInBatch(renderContext->args->_context, [&](gpu::Batch& batch) { |
| 443 | if (renderContext->args->_hudOperator) { | 448 | if (renderContext->args->_hudOperator) { |