Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1927,7 +1927,7 @@ void renderInstances(RenderArgs* args, gpu::Batch& batch, const glm::vec4& color · 1926 unmodified lines | |||
| 1927 | // Add color to named buffer | 1927 | // 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 | ||