fix warnings

This commit is contained in:
SweetId 2023-09-19 20:28:10 -04:00
parent 9c78b57cb0
commit bd40b7c47a
1 changed files with 2 additions and 2 deletions

View File

@ -606,7 +606,7 @@ namespace Nz
indices.reserve(indices.size() + cmd_list->IdxBuffer.size());
for (auto indice : cmd_list->IdxBuffer)
indices.push_back(drawCall.vertex_offset + indice);
indices.push_back(uint16_t(drawCall.vertex_offset + indice));
for (auto& cmd : cmd_list->CmdBuffer)
drawCall.cmdBuffer.push_back(cmd);
@ -675,7 +675,7 @@ namespace Nz
builder.SetScissor(Nz::Recti{ int(rect.x), int(rect.y), int(rect.z - rect.x), int(rect.w - rect.y) });// Nz::Recti{ int(rect.x), int(fb_height - rect.w), int(rect.z - rect.x), int(rect.w - rect.y) });
builder.DrawIndexed(count, 1, indexOffset);
builder.DrawIndexed(count, 1, Nz::UInt32(indexOffset));
}
indexOffset += cmd.ElemCount;
}