Drawable Renderer (#1570), [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2023-05-22 23:55:22 +00:00
committed by Bart Louwers
parent b5abc33c4b
commit c873570987
3 changed files with 3 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ bool Context::setupDraw(const PaintParameters& parameters, const gfx::Drawable&
setDepthMode(parameters.depthModeForSublayer(drawable.getSubLayerIndex(), drawable.getDepthType()));
// force disable depth test for debugging
//setDepthMode({gfx::DepthFunctionType::Always, gfx::DepthMaskType::ReadOnly, {0,1}});
// setDepthMode({gfx::DepthFunctionType::Always, gfx::DepthMaskType::ReadOnly, {0,1}});
if (auto tileID = drawable.getTileID()) {
// Doesn't work until the clipping masks are generated

View File

@@ -90,7 +90,7 @@ void TileLayerGroupGL::render(RenderOrchestrator&, PaintParameters& parameters)
}
const auto renderableSize = parameters.backend.getDefaultRenderable().getSize();
gfx::DrawableUBO drawableUBO;
drawableUBO.matrix = util::cast<float>(matrix);
drawableUBO.world = {(float)renderableSize.width, (float)renderableSize.height};

View File

@@ -507,7 +507,7 @@ void RenderFillLayer::update(const int32_t layerIndex,
for (auto& drawable : fillBuilder->clearDrawables()) {
drawable->setTileID(tileID);
//tileLayerGroup->addDrawable(renderPass, tileID, std::move(drawable));
// tileLayerGroup->addDrawable(renderPass, tileID, std::move(drawable));
++stats.tileDrawablesAdded;
}
}