mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 15:22:09 +02:00
Disable z-write when drawing web entities with alpha < 1.
This commit is contained in:
parent
90799e10da
commit
4f71cb5945
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue