mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix clang-check warnings
This commit is contained in:
parent
4c23dc6adf
commit
17dcbe98ab
8 changed files with 8 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue