diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-01 21:29:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-05-01 21:29:01 +0100 |
commit | c977c02ba3a6ad6ada3f1a458b41a77f2be2b871 (patch) | |
tree | 40914fd6b27b1d74ebff87504d161851292d1b06 /game/scenary | |
parent | Don't explictly call destructor of contained element (diff) | |
download | ilt-c977c02ba3a6ad6ada3f1a458b41a77f2be2b871.tar.bz2 ilt-c977c02ba3a6ad6ada3f1a458b41a77f2be2b871.tar.xz ilt-c977c02ba3a6ad6ada3f1a458b41a77f2be2b871.zip |
Refactor InstanceVertices in terms of glContainer
Diffstat (limited to 'game/scenary')
-rw-r--r-- | game/scenary/foliage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/scenary/foliage.cpp b/game/scenary/foliage.cpp index 9304842..702a52c 100644 --- a/game/scenary/foliage.cpp +++ b/game/scenary/foliage.cpp @@ -21,7 +21,7 @@ Foliage::postLoad() void Foliage::render(const SceneShader & shader) const { - if (const auto count = instances.count()) { + if (const auto count = instances.size()) { shader.basicInst.use(); if (texture) { texture->bind(); @@ -33,7 +33,7 @@ Foliage::render(const SceneShader & shader) const void Foliage::shadows(const ShadowMapper & mapper) const { - if (const auto count = instances.count()) { + if (const auto count = instances.size()) { mapper.dynamicPointInst.use(); bodyMesh->DrawInstanced(instanceVAO, static_cast<GLsizei>(count)); } |