Changed: Multiple const additions.

This commit is contained in:
Foxar
2020-12-21 20:28:26 +01:00
parent 23ea1a28f6
commit ae3dd737e5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ u8 Mesh::isInFrustum(Plane *t_frustumPlanes)
{ {
Vector3 boxCalcTemp; Vector3 boxCalcTemp;
u8 boxResult = 1, boxIn = 0, boxOut = 0; u8 boxResult = 1, boxIn = 0, boxOut = 0;
Vector3 *currentBoundingBox = getCurrentBoundingBox(); const Vector3 *currentBoundingBox = getCurrentBoundingBoxVertices();
for (int i = 0; i < 6; i++) for (int i = 0; i < 6; i++)
{ {
boxOut = 0; boxOut = 0;
+1 -1
View File
@@ -38,7 +38,7 @@ void Utils::getMinMax(const Mesh &t_mesh, Vector3 &t_min, Vector3 &t_max)
{ {
Vector3 calc = Vector3(); Vector3 calc = Vector3();
u8 isInitialized = 0; u8 isInitialized = 0;
Vector3 *boundingBox = t_mesh.getCurrentBoundingBox(); const Vector3 *boundingBox = t_mesh.getCurrentBoundingBoxVertices();
for (u32 i = 0; i < 8; i++) for (u32 i = 0; i < 8; i++)
{ {
calc.set( calc.set(