Revert "fix: optimization: Various PVS-Studio warnings"

This commit is contained in:
MihailRis
2024-08-02 14:51:44 +03:00
committed by GitHub
parent a7ef7bb365
commit ba046a52c0
90 changed files with 259 additions and 274 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
class Frustum {
public:
Frustum() = default;
Frustum() {};
void update(glm::mat4 projview);
bool isBoxVisible(const glm::vec3& minp, const glm::vec3& maxp) const;
+1 -1
View File
@@ -70,7 +70,7 @@ struct AABB {
b = end;
}
inline void addPoint(const glm::vec3& p) {
inline void addPoint(glm::vec3 p) {
a = glm::min(a, p);
b = glm::max(b, p);
}
+1 -1
View File
@@ -21,7 +21,7 @@ class AABBFaces {
public:
std::array<std::pair<rayvec3, rayvec2>, AABBFACES_COUNT> faces; // every face is min-point and opposite corner point
AABBFaces() = default;
AABBFaces(){};
AABBFaces(const rayvec3& parentBoxPos, const AABB& parentBox);
};