Skip to content

Commit

Permalink
skel/vertmodel.h const -> constexpr for #210
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Jun 6, 2021
1 parent bf540d8 commit e37e3ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/model/skelmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ struct skelmodel : animmodel
template<class T>
void interpverts(const dualquat * RESTRICT bdata1, const dualquat * RESTRICT bdata2, T * RESTRICT vdata, skin &s)
{
const int blendoffset = (static_cast<skelmeshgroup *>(group))->skel->numgpubones;
constexpr int blendoffset = (static_cast<skelmeshgroup *>(group))->skel->numgpubones;
bdata2 -= blendoffset;
vdata += voffset;
for(int i = 0; i < numverts; ++i)
Expand Down
2 changes: 1 addition & 1 deletion src/engine/model/vertmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ struct vertmodel : animmodel
tag *tags;
int numtags;

static const int maxvbocache = 16;
static constexpr int maxvbocache = 16;
vbocacheentry vbocache[maxvbocache];

ushort *edata;
Expand Down

0 comments on commit e37e3ad

Please sign in to comment.