Revert "fix: optimization: Various PVS-Studio warnings"
This commit is contained in:
@@ -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
@@ -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
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user