summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-07 14:22:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-07 14:22:17 +0200
commit2caeb3de2a3b6c79d6c3bce6898eaee07249836f (patch)
treec9ab4c850168d2b543468e7782e07f283e04c301 /src
parente1e539709d6e197cd2f2118e14598fd8c7b42c7b (diff)
.
Diffstat (limited to 'src')
-rw-r--r--src/wall-mesh.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wall-mesh.hpp b/src/wall-mesh.hpp
index e23799f4..bf8c533e 100644
--- a/src/wall-mesh.hpp
+++ b/src/wall-mesh.hpp
@@ -19,10 +19,10 @@ struct wall_mesh final
void draw(tile_shader& shader, chunk& c);
private:
- static constexpr auto COUNT = TILE_MAX_DIM*2 * TILE_MAX_DIM*2;
+ static constexpr auto COUNT1 = TILE_MAX_DIM*2, COUNT = COUNT1 * COUNT1;
struct vertex final {
- std::array<Vector2, 4> texcoords;
+ Vector2 texcoords;
};
using quad = std::array<vertex, 4>;