Skip to content

Commit

Permalink
ViewportGadget : Avoid rendering selection ids with GL_BLEND enabled
Browse files Browse the repository at this point in the history
Otherwise this leads to corrupted ids when rendering overlays such as the CropWindowTool on Intel graphics hardware.
  • Loading branch information
murraystevenson committed Mar 16, 2024
1 parent 8849cdf commit e5e8958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GafferUI/ViewportGadget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,9 @@ void ViewportGadget::renderInternal( RenderReason reason, Gadget::Layer filterLa
if( reason != RenderReason::Draw )
{
// We're doing selection so post-processing doesn't matter. Just
// render direct to output buffer.
// render direct to output buffer without blending as that can
// corrupt the selection buffer on some graphics hardware.
glDisable( GL_BLEND );
renderLayerInternal( reason, layer, viewTransform, bound, selector );
continue;
}
Expand Down

0 comments on commit e5e8958

Please sign in to comment.