fix clang-check warnings

This commit is contained in:
MihailRis
2025-01-01 16:06:44 +03:00
parent 4c23dc6adf
commit 17dcbe98ab
8 changed files with 8 additions and 12 deletions
+2
View File
@@ -1,4 +1,5 @@
#include "Mesh.hpp"
#include <assert.h>
#include <GL/glew.h>
int Mesh::meshesCount = 0;
@@ -9,6 +10,7 @@ inline size_t calc_vertex_size(const VertexAttribute* attrs) {
for (int i = 0; attrs[i].size; i++) {
vertexSize += attrs[i].size;
}
assert(vertexSize != 0);
return vertexSize;
}