mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +00:00
gpu,gpu/shaders: revert attempt to fix path gaps
This is effectively a revert of [0], reintroducing the path gaps described in [1]. A follow-up change will implement another attempt. [0] https://gioui.org/commit/2feec23561cd84d6b8ddbab84a202df66b123208 [1] https://github.com/linebender/piet-gpu/issues/62 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -42,13 +42,13 @@ func (c Command) Op() Op {
|
||||
return Op(c[0])
|
||||
}
|
||||
|
||||
func Line(start, end f32.Point, stroke bool, flags uint32) Command {
|
||||
func Line(start, end f32.Point, stroke bool) Command {
|
||||
tag := uint32(OpFillLine)
|
||||
if stroke {
|
||||
tag = uint32(OpStrokeLine)
|
||||
}
|
||||
return Command{
|
||||
0: flags<<16 | tag,
|
||||
0: tag,
|
||||
1: math.Float32bits(start.X),
|
||||
2: math.Float32bits(start.Y),
|
||||
3: math.Float32bits(end.X),
|
||||
|
||||
Reference in New Issue
Block a user