Disable z-write when drawing web entities with alpha < 1.

This commit is contained in:
Phil Palmer 2021-01-03 22:59:31 -05:00
parent 90799e10da
commit 4f71cb5945

View file

@ -2135,7 +2135,7 @@ gpu::PipelinePointer GeometryCache::getWebBrowserProgram(bool transparent, bool
auto pipeline = (transparent || forward) ? web_browser_forward : web_browser;
gpu::StatePointer state = gpu::StatePointer(new gpu::State());
state->setDepthTest(true, true, gpu::LESS_EQUAL);
state->setDepthTest(true, !transparent, gpu::LESS_EQUAL);
// FIXME: do we need a testMaskDrawNoAA?
PrepareStencil::testMaskDrawShapeNoAA(*state);
state->setBlendFunction(transparent,