Skip to content

Commit

Permalink
Fix GCC error in case that somehow requires to be passed by const&.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Dec 17, 2023
1 parent dd26524 commit a95f8cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meshers/blocky/voxel_blocky_library_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class VoxelBlockyLibraryBase : public Resource {

public:
// Limit based on maximum supported by VoxelMesherBlocky
static const unsigned int MAX_MODELS = 65536;
static constexpr unsigned int MAX_MODELS = 65536;

// Materials must be kept to a minimum. 256 is already a lot, but that only affects performance. This limit is
// the one beyond which the code stops working. Could still be increased in theory (requires some code changes to
// use uint32_t instead of uint16_t), but there is no practical sense doing so.
static const unsigned int MAX_MATERIALS = 65536;
static constexpr unsigned int MAX_MATERIALS = 65536;

static const uint32_t NULL_INDEX = 0xFFFFFFFF;
static constexpr uint32_t NULL_INDEX = 0xFFFFFFFF;

struct BakedData {
// 2D array: { X : pattern A, Y : pattern B } => Does A occlude B
Expand Down

0 comments on commit a95f8cf

Please sign in to comment.