diff --git a/src/graphics/Batch3D.cpp b/src/graphics/Batch3D.cpp index 275797b7..1c4ab995 100644 --- a/src/graphics/Batch3D.cpp +++ b/src/graphics/Batch3D.cpp @@ -84,7 +84,7 @@ void Batch3D::face(const vec3& coord, float w, float h, const vec3& axisY, const UVRegion& region, const vec4& tint) { - if (index + VERTEX_SIZE * 4 > capacity) { + if (index + VERTEX_SIZE * 6 > capacity) { flush(); } vertex(coord, region.u1, region.v1, diff --git a/src/voxels/Block.cpp b/src/voxels/Block.cpp index 2dbaaf6a..b1aa3a61 100644 --- a/src/voxels/Block.cpp +++ b/src/voxels/Block.cpp @@ -2,8 +2,8 @@ Block::Block(std::string name) : name(name), - textureFaces({"notfound","notfound","notfound", - "notfound","notfound","notfound",}) { + textureFaces {"notfound","notfound","notfound", + "notfound","notfound","notfound",} { }