From a97e148a9467ee33335e5c55c5c0daa48596f40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Garc=C3=ADa=20Li=C3=B1=C3=A1n?= Date: Fri, 27 Aug 2021 21:17:19 +0200 Subject: [PATCH] Canvas: Change the node mask of the ODGauge camera Since the Canvas cameras are no longer in the scene graph, we no longer need to explicitly make them render only in the Classic pipeline's far camera. --- simgear/canvas/ODGauge.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simgear/canvas/ODGauge.cxx b/simgear/canvas/ODGauge.cxx index 8e9f8c2b..8a6b1421 100644 --- a/simgear/canvas/ODGauge.cxx +++ b/simgear/canvas/ODGauge.cxx @@ -210,8 +210,7 @@ namespace canvas //---------------------------------------------------------------------------- void ODGauge::setRender(bool render) { - // Only the far camera should trigger this texture to be rendered. - camera->setNodeMask(render ? simgear::BACKGROUND_BIT : 0); + camera->setNodeMask(render ? 0xffffffff : 0); } //----------------------------------------------------------------------------