Skip to content
Permalink
Browse files
Fix constrained blend mode render
  • Loading branch information
nyalldawson committed Nov 23, 2021
1 parent ec5cc93 commit 688dae4a8c385841d3d7cc56a8a396cd10fc01ac
@@ -131,5 +131,17 @@ bool QgsGroupLayerRenderer::render()

bool QgsGroupLayerRenderer::forceRasterRender() const
{
return renderContext()->testFlag( Qgis::RenderContextFlag::UseAdvancedEffects ) && ( !qgsDoubleNear( mLayerOpacity, 1.0 ) );
if ( !renderContext()->testFlag( Qgis::RenderContextFlag::UseAdvancedEffects ) )
return false;

if ( !qgsDoubleNear( mLayerOpacity, 1.0 ) )
return true;

for ( QPainter::CompositionMode mode : mRendererCompositionModes )
{
if ( mode != QPainter::CompositionMode_SourceOver )
return true;
}

return false;
}
Binary file not shown.

0 comments on commit 688dae4

Please sign in to comment.