mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Revert "fix: optimization: Various PVS-Studio warnings"
This commit is contained in:
parent
a7ef7bb365
commit
ba046a52c0
90 changed files with 259 additions and 274 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue