Skip to content

Commit

Permalink
fix: -Werror=missing-braces
Browse files Browse the repository at this point in the history
  • Loading branch information
bloerwald committed Dec 12, 2024
1 parent 5bf4d15 commit 788c259
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/noggit/liquid_layer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ class liquid_layer
static constexpr int lod_count = 3;
static constexpr int vertex_buffer_size_required = 9 * 9 * sizeof(liquid_vertex);
static constexpr std::array<int, 4> max_indices_per_lod_level =
{ 8 * 8 * 2 * 3 // 2 triangles per quad
, 4 * 4 * 2 * 3
, 2 * 2 * 2 * 3
, 1 * 1 * 2 * 3
};
{{ 8 * 8 * 2 * 3 // 2 triangles per quad
, 4 * 4 * 2 * 3
, 2 * 2 * 2 * 3
, 1 * 1 * 2 * 3
}};
static constexpr std::array<int, 4> lod_level_offset =
{ 0
, 64 * 6 * sizeof(liquid_indice)
, (64 + 16) * 6 * sizeof(liquid_indice)
, (64 + 16 + 4) * 6 * sizeof(liquid_indice)
};
{{ (0 ) * 6 * sizeof(liquid_indice)
, (0 + 64 ) * 6 * sizeof(liquid_indice)
, (0 + 64 + 16 ) * 6 * sizeof(liquid_indice)
, (0 + 64 + 16 + 4) * 6 * sizeof(liquid_indice)
}};
static constexpr int max_total_indices = max_indices_per_lod_level[0] + max_indices_per_lod_level[1]
+ max_indices_per_lod_level[2];
static constexpr int indice_buffer_size_required = max_total_indices * sizeof(liquid_indice);
Expand Down

0 comments on commit 788c259

Please sign in to comment.