summary refs log tree commit diff
path: root/src/Game.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-19 13:12:57 +0100
committerMel <einebeere@gmail.com>2024-02-19 13:12:57 +0100
commit3ae3891ca2698d5fd2160fbed5b780a91651a218 (patch)
treeebfd259ed517a1ddc9a26c469b7c34fc165d5ced /src/Game.cpp
parent3e6eb265a018fd0422b59ca9ea1b8918abee5c16 (diff)
downloadmeowcraft-3ae3891ca2698d5fd2160fbed5b780a91651a218.tar.zst
meowcraft-3ae3891ca2698d5fd2160fbed5b780a91651a218.zip
Fix for GCC and Linux
Diffstat (limited to 'src/Game.cpp')
-rw-r--r--src/Game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Game.cpp b/src/Game.cpp
index dd04b2f..6c6df7c 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -50,14 +50,14 @@ void Game::run() const {
         for (auto chunk : world.get_visible_chunks(time, camera.position())) {
             auto position = chunk->chunk.value().position();
             actions.add({
-                .program = GFX::Resources::Program::Terrain,
                 .mesh = &chunk->land_mesh.value(),
+                .program = GFX::Resources::Program::Terrain,
                 .transform = Transform(position),
             });
 
             actions.add({
-                .program = GFX::Resources::Program::Terrain,
                 .mesh = &chunk->water_mesh.value(),
+                .program = GFX::Resources::Program::Terrain,
                 .transform = Transform(position - Vec3{0, 0.2, 0}),
                 .alpha = 0.4,
             });