Drawable Renderer (#1570), warnings

This commit is contained in:
mwilsnd
2023-05-30 11:49:12 -05:00
committed by Bart Louwers
parent a745329eb1
commit 411451dbf5
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ const UniqueDrawable& DrawableBuilder::getCurrentDrawable(bool createIfNone) {
void DrawableBuilder::flush() {
if (!impl->vertices.empty()) {
const auto& draw = getCurrentDrawable(/*createIfNone=*/true);
draw->setLineWidth(lineWidth);
draw->setLineWidth(static_cast<int32_t>(lineWidth));
draw->setRenderPass(renderPass);
draw->setDrawPriority(drawPriority);
draw->setLayerIndex(layerIndex);

View File

@@ -189,7 +189,7 @@ gfx::AttributeBindingArray UploadPass::buildAttributeBindings(
pad(allData, align, padding);
// The vertex stride is the sum of the attribute strides
vertexStride += stride;
vertexStride += static_cast<uint32_t>(stride);
};
defaults.resolve(overrides, resolveAttr);