summaryrefslogtreecommitdiff
path: root/game/scenary/foliage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/scenary/foliage.cpp')
-rw-r--r--game/scenary/foliage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/scenary/foliage.cpp b/game/scenary/foliage.cpp
index af67ea6..1e7424e 100644
--- a/game/scenary/foliage.cpp
+++ b/game/scenary/foliage.cpp
@@ -48,7 +48,7 @@ Foliage::shadows(const ShadowMapper & mapper) const
const auto dimensions = bodyMesh->getDimensions();
mapper.stencilShadowProgram.use(dimensions.centre, dimensions.size);
glActiveTexture(GL_TEXTURE0);
- glBindTexture(GL_TEXTURE_2D, shadowStencil);
+ glBindTexture(GL_TEXTURE_2D_ARRAY, shadowStencil);
glBindVertexArray(instancePointVAO);
glDrawArrays(GL_POINTS, 0, static_cast<GLsizei>(count));
glBindVertexArray(0);