History

image sampler prop

HifiExperiments committed 1 year ago

Commit 75e2f851 parent d3b1fc776 files · +691 −437Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 76 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+3−3
@@ -1825,7 +1825,7 @@ void GeometryCache::useGridPipeline(gpu::Batch& batch, GridBuffer gridBuffer, bo · 1824 unmodified lines
18251825
18261826 for (auto& key : keys) {
18271827 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);
18291829 if (std::get<0>(key)) {
18301830 PrepareStencil::testMaskResetNoAA(*state);
18311831 } else {
@@ -1931,7 +1931,7 @@ gpu::PipelinePointer GeometryCache::getWebBrowserProgram(bool transparent, bool · 99 unmodified lines
19311931 auto pipeline = (transparent || forward) ? web_browser_forward : web_browser;
19321932
19331933 gpu::StatePointer state = std::make_shared<gpu::State>();
1934− state->setDepthTest(true, !transparent, gpu::LESS_EQUAL);
1934+ state->setDepthTest(true, !transparent, ComparisonFunction::LESS_EQUAL);
19351935 PrepareStencil::testMaskDrawShapeNoAA(*state);
19361936 state->setBlendFunction(transparent,
19371937 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
20082008 } else {
20092009 state->setCullMode(gpu::State::CULL_BACK);
20102010 }
2011− state->setDepthTest(true, !config.isTransparent(), gpu::LESS_EQUAL);
2011+ state->setDepthTest(true, !config.isTransparent(), ComparisonFunction::LESS_EQUAL);
20122012 if (config.hasDepthBias()) {
20132013 state->setDepthBias(1.0f);
20142014 state->setDepthBiasSlopeScale(1.0f);