From 2ebaad6cb60c8efd649203909e2d351a042b07d2 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 1 Dec 2023 19:04:13 +0300 Subject: [PATCH] msvc build fix --- src/graphics/Batch3D.cpp | 2 +- src/voxels/Block.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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",} { }