History

prevent rendering HUD elements in secondary camera

David Back committed 9 years ago

Commit 163de641 parent ea38b321 file · +5 −0Browse files

Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+5−0
@@ -438,6 +438,11 @@ void CompositeHUD::run(const RenderContextPointer& renderContext) { · 437 unmodified lines
438438 assert(renderContext->args);
439439 assert(renderContext->args->_context);
440440
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+
441446 // Grab the HUD texture
442447 gpu::doInBatch(renderContext->args->_context, [&](gpu::Batch& batch) {
443448 if (renderContext->args->_hudOperator) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t