This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -901,14 +901,12 @@ static bool UseColorSourceContents(
901
901
const std::shared_ptr<VerticesGeometry>& vertices,
902
902
const Paint& paint) {
903
903
// If there are no vertex color or texture coordinates. Or if there
904
- // are vertex coordinates then only if the contents are an image or
905
- // a solid color.
904
+ // are vertex coordinates but its just a color.
906
905
if (vertices->HasVertexColors ()) {
907
906
return false ;
908
907
}
909
908
if (vertices->HasTextureCoordinates () &&
910
- (paint.color_source .GetType () == ColorSource::Type::kImage ||
911
- paint.color_source .GetType () == ColorSource::Type::kColor )) {
909
+ (paint.color_source .GetType () == ColorSource::Type::kColor )) {
912
910
return true ;
913
911
}
914
912
return !vertices->HasTextureCoordinates ();
@@ -928,8 +926,7 @@ void Canvas::DrawVertices(const std::shared_ptr<VerticesGeometry>& vertices,
928
926
entity.SetTransform (GetCurrentTransform ());
929
927
entity.SetBlendMode (paint.blend_mode );
930
928
931
- // If there are no vertex color or texture coordinates. Or if there
932
- // are vertex coordinates then only if the contents are an image.
929
+ // If there are no vertex color or texture coordinates.
933
930
if (UseColorSourceContents (vertices, paint)) {
934
931
entity.SetContents (CreateContentsForGeometryWithFilters (paint, vertices));
935
932
AddRenderEntityToCurrentPass (std::move (entity));
You can’t perform that action at this time.
0 commit comments