History

fix auto casts, offset

HifiExperiments committed 2 years ago

Commit be95d321 parent f27263c5 files · +11 −11Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 5 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+1−1
@@ -1927,7 +1927,7 @@ void renderInstances(RenderArgs* args, gpu::Batch& batch, const glm::vec4& color · 1926 unmodified lines
19271927 // Add color to named buffer
19281928 {
19291929 gpu::BufferPointer instanceColorBuffer = batch.getNamedBuffer(instanceName, INSTANCE_COLOR_BUFFER);
1930− auto compactColor = GeometryCache::toCompactColor(color);
1930+ const uint32_t compactColor = GeometryCache::toCompactColor(color);
19311931 instanceColorBuffer->append(compactColor);
19321932 }
19331933