Changed gradient::Packed to be repr(C) for direct gpu upload.
This commit is contained in:
parent
413526ad09
commit
902e333148
5 changed files with 31 additions and 22 deletions
|
|
@ -505,7 +505,7 @@ impl tessellation::FillVertexConstructor<primitive::GradientVertex2D>
|
|||
|
||||
primitive::GradientVertex2D {
|
||||
position: [position.x, position.y],
|
||||
gradient: self.gradient.data,
|
||||
gradient: self.gradient,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -521,7 +521,7 @@ impl tessellation::StrokeVertexConstructor<primitive::GradientVertex2D>
|
|||
|
||||
primitive::GradientVertex2D {
|
||||
position: [position.x, position.y],
|
||||
gradient: self.gradient.data,
|
||||
gradient: self.gradient,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue