From 9ff529e4f21f8220269daa2ce38d0ae5a91da0fb Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Wed, 4 Dec 2024 14:59:08 -0500 Subject: [PATCH] FPSGadget : Draw on `Front` layer --- src/GafferUI/FPSGadget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GafferUI/FPSGadget.cpp b/src/GafferUI/FPSGadget.cpp index 30339d630b6..3c316152707 100644 --- a/src/GafferUI/FPSGadget.cpp +++ b/src/GafferUI/FPSGadget.cpp @@ -59,7 +59,7 @@ FPSGadget::~FPSGadget() void FPSGadget::renderLayer( Gadget::Layer layer, const Style *style, Gadget::RenderReason reason ) const { - if( layer != Layer::Main ) + if( layer != Layer::Front ) { return; } @@ -109,7 +109,7 @@ void FPSGadget::renderLayer( Gadget::Layer layer, const Style *style, Gadget::Re unsigned FPSGadget::layerMask() const { - return (unsigned)Layer::Main; + return (unsigned)Layer::Front; }