Skip to content

Commit

Permalink
fix(rendering): add missing uint32_t cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas7770 committed Jan 24, 2024
1 parent a0e8fdb commit 8e42689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/src/cubos/engine/renderer/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static void frameGrids(const Assets& assets, Renderer& renderer, RendererFrame&
grid.handle = renderer->upload(gridRead.get());
}

CUBOS_ASSERT(entity.index < (1 << 31), "Entity index must be lower than 2^31");
CUBOS_ASSERT(entity.index < static_cast<uint32_t>(1 << 31), "Entity index must be lower than 2^31");
frame.draw(grid.handle, localToWorld.mat * glm::translate(glm::mat4(1.0F), grid.offset), entity.index);
}
}
Expand Down

0 comments on commit 8e42689

Please sign in to comment.