Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix constrained blend mode render
  • Loading branch information
nyalldawson committed Nov 23, 2021
1 parent ec5cc93 commit 688dae4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/core/qgsgrouplayerrenderer.cpp
Expand Up @@ -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;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 688dae4

Please sign in to comment.