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
1927 // Add color to named buffer1927 // Add color to named buffer
1928 {1928 {
1929 gpu::BufferPointer instanceColorBuffer = batch.getNamedBuffer(instanceName, INSTANCE_COLOR_BUFFER);1929 gpu::BufferPointer instanceColorBuffer = batch.getNamedBuffer(instanceName, INSTANCE_COLOR_BUFFER);
1930 auto compactColor = GeometryCache::toCompactColor(color);1930 const uint32_t compactColor = GeometryCache::toCompactColor(color);
1931 instanceColorBuffer->append(compactColor);1931 instanceColorBuffer->append(compactColor);
1932 }1932 }
1933 1933