Skip to content

Commit

Permalink
FPSGadget : Draw on Front layer
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Dec 4, 2024
1 parent 581072c commit 9ff529e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GafferUI/FPSGadget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}


Expand Down

0 comments on commit 9ff529e

Please sign in to comment.