suppress some warnings
This commit is contained in:
@@ -52,7 +52,7 @@ namespace OpenVulkano::Scene
|
||||
if (m_mesh->indexCount != 0)
|
||||
{
|
||||
assert(m_mesh->indexCount % 3 == 0 && "Topology is TRIANGLE_LIST but index count is not divisible by 3");
|
||||
for (int i = 0; i < m_mesh->indexCount; i += 3)
|
||||
for (uint32_t i = 0; i < m_mesh->indexCount; i += 3)
|
||||
{
|
||||
if (m_mesh->indexType == VertexIndexType::UINT16)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace OpenVulkano::Scene
|
||||
else
|
||||
{
|
||||
assert(m_mesh->indexCount % 3 == 0 && "Topology is TRIANGLE_LIST but vertex count is not divisible by 3");
|
||||
for (int i = 0; i < m_mesh->vertexCount; i += 3)
|
||||
for (uint32_t i = 0; i < m_mesh->vertexCount; i += 3)
|
||||
{
|
||||
if (auto hit = ray.IntersectTriangle(m_mesh->vertices[i].position,
|
||||
m_mesh->vertices[i + 1].position,
|
||||
|
||||
Reference in New Issue
Block a user