Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 76 files). Show all
Unified · Split
| @@ -1825,7 +1825,7 @@ void GeometryCache::useGridPipeline(gpu::Batch& batch, GridBuffer gridBuffer, bo · 1824 unmodified lines | ||
| 1825 | 1825 | |
| 1826 | 1826 | for (auto& key : keys) { |
| 1827 | 1827 | gpu::StatePointer state = std::make_shared<gpu::State>(); |
| 1828 | − state->setDepthTest(true, !std::get<0>(key), gpu::LESS_EQUAL); | |
| 1828 | + state->setDepthTest(true, !std::get<0>(key), ComparisonFunction::LESS_EQUAL); | |
| 1829 | 1829 | if (std::get<0>(key)) { |
| 1830 | 1830 | PrepareStencil::testMaskResetNoAA(*state); |
| 1831 | 1831 | } else { |
| @@ -1931,7 +1931,7 @@ gpu::PipelinePointer GeometryCache::getWebBrowserProgram(bool transparent, bool · 99 unmodified lines | ||
| 1931 | 1931 | auto pipeline = (transparent || forward) ? web_browser_forward : web_browser; |
| 1932 | 1932 | |
| 1933 | 1933 | gpu::StatePointer state = std::make_shared<gpu::State>(); |
| 1934 | − state->setDepthTest(true, !transparent, gpu::LESS_EQUAL); | |
| 1934 | + state->setDepthTest(true, !transparent, ComparisonFunction::LESS_EQUAL); | |
| 1935 | 1935 | PrepareStencil::testMaskDrawShapeNoAA(*state); |
| 1936 | 1936 | state->setBlendFunction(transparent, |
| 1937 | 1937 | gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA, |
| @@ -2008,7 +2008,7 @@ gpu::PipelinePointer GeometryCache::getSimplePipeline(bool textured, bool transp · 70 unmodified lines | ||
| 2008 | 2008 | } else { |
| 2009 | 2009 | state->setCullMode(gpu::State::CULL_BACK); |
| 2010 | 2010 | } |
| 2011 | − state->setDepthTest(true, !config.isTransparent(), gpu::LESS_EQUAL); | |
| 2011 | + state->setDepthTest(true, !config.isTransparent(), ComparisonFunction::LESS_EQUAL); | |
| 2012 | 2012 | if (config.hasDepthBias()) { |
| 2013 | 2013 | state->setDepthBias(1.0f); |
| 2014 | 2014 | state->setDepthBiasSlopeScale(1.0f); |