- shape->Vertices(buf, transform, texture, idx_offset);
- buf.colors.insert(buf.colors.end(), shape->VertexCount(), color);
+ if (!shape) return;
+ shape->Fill(buf, transform, textures, idx_offset);
+ buf.hsl_mods.insert(buf.hsl_mods.end(), shape->VertexCount(), hsl_mod);
+ buf.rgb_mods.insert(buf.rgb_mods.end(), shape->VertexCount(), rgb_mod);