Skip to content

Commit

Permalink
Ensure that all depth values are rendered before any color values (#2811
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TimSylvester authored Sep 9, 2024
1 parent 146d700 commit f74f4ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mbgl/renderer/layers/render_fill_extrusion_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ void RenderFillExtrusionLayer::update(gfx::ShaderRegistry& shaders,
builder->setEnableColor(false);
builder->setRenderPass(drawPass);
builder->setCullFaceMode(gfx::CullFaceMode::backCCW());
builder->setDrawPriority(0);
if (tweaker) {
builder->addTweaker(tweaker);
}
Expand All @@ -447,6 +448,7 @@ void RenderFillExtrusionLayer::update(gfx::ShaderRegistry& shaders,
builder->setColorMode(gfx::ColorMode::alphaBlended());
builder->setRenderPass(drawPass);
builder->setCullFaceMode(gfx::CullFaceMode::backCCW());
builder->setDrawPriority(1);
if (tweaker) {
builder->addTweaker(tweaker);
}
Expand Down

0 comments on commit f74f4ff

Please sign in to comment.