X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fod_gauge.cxx;h=820f0a9d8744d2de031d82a7484731634f41d9e7;hb=c6045147544badd6daefdcab9d4de1ed6936533b;hp=25184450c1229dea298760a6b2b323e12c0abce9;hpb=aed97e0dd4ed7b3f3275df7f4f9256a4fda7c0d7;p=flightgear.git diff --git a/src/Instrumentation/od_gauge.cxx b/src/Instrumentation/od_gauge.cxx index 25184450c..820f0a9d8 100644 --- a/src/Instrumentation/od_gauge.cxx +++ b/src/Instrumentation/od_gauge.cxx @@ -37,6 +37,7 @@ #include #include +#include #include #include @@ -53,6 +54,8 @@ FGODGauge::FGODGauge() : void FGODGauge::allocRT () { camera = new osg::Camera; + // Only the far camera should trigger this texture to be rendered. + camera->setNodeMask(simgear::BACKGROUND_BIT); camera->setProjectionMatrix(osg::Matrix::ortho2D(-256.0, 256.0, -256.0, 256.0)); camera->setViewport(0, 0, textureWH, textureWH);