Skip to content

Commit

Permalink
renderlights.cpp const -> constexpr for #210
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Jun 9, 2021
1 parent a63822c commit 993d645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/render/renderlights.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ struct shadowcache : hashtable<shadowcachekey, shadowcacheval>
}
};

static const int shadowcacheevict = 2;
static constexpr int shadowcacheevict = 2;

GLuint shadowatlastex = 0,
shadowatlasfbo = 0;
Expand Down Expand Up @@ -1263,7 +1263,7 @@ const matrix4 cubeshadowviewmatrix[6] =
matrix4(vec(1, 0, 0), vec(0, 1, 0), vec(0, 0, 1)) // -Z
};

static const int LightTile_MaxBatch = 8; //also used in lightbatchkey below
static constexpr int LightTile_MaxBatch = 8; //also used in lightbatchkey below

VARF(lighttilebatch, 0, LightTile_MaxBatch, LightTile_MaxBatch, cleardeferredlightshaders());
VARF(batchsunlight, 0, 2, 2, cleardeferredlightshaders());
Expand Down

0 comments on commit 993d645

Please sign in to comment.