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.
This commit is contained in:
Fernando García Liñán 2021-08-27 21:17:19 +02:00
parent e76b684c20
commit a97e148a94

View File

@ -210,8 +210,7 @@ namespace canvas
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void ODGauge::setRender(bool render) void ODGauge::setRender(bool render)
{ {
// Only the far camera should trigger this texture to be rendered. camera->setNodeMask(render ? 0xffffffff : 0);
camera->setNodeMask(render ? simgear::BACKGROUND_BIT : 0);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------