Drawable Renderer (#1570), warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user