summaryrefslogtreecommitdiffstats
path: root/Projects/Asteroids/src/asteroids_DE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/Asteroids/src/asteroids_DE.cpp')
-rw-r--r--Projects/Asteroids/src/asteroids_DE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp
index 1b9702d..71f7c23 100644
--- a/Projects/Asteroids/src/asteroids_DE.cpp
+++ b/Projects/Asteroids/src/asteroids_DE.cpp
@@ -266,7 +266,7 @@ Asteroids::Asteroids(const Settings& settings, AsteroidsSimulation* asteroids, G
// (0, 1, 2, ...) and we will acess it with FirstInstanceLocation.
BufferDesc desc;
desc.Name = "Instance ID buffer";
- desc.Usage = USAGE_STATIC;
+ desc.Usage = USAGE_IMMUTABLE;
desc.BindFlags = BIND_VERTEX_BUFFER;
desc.uiSizeInBytes = static_cast<Uint32>(sizeof(Uint32)) * MaxAsteroidsInSubset;
std::vector<Uint32> Ids(MaxAsteroidsInSubset);