ui/app/internal/gpu: set the default material to black

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-22 11:23:38 +02:00
parent c427597fde
commit 9520a9278f
+3 -2
View File
@@ -686,8 +686,9 @@ func (d *drawOps) collect(cache *resourceCache, root *ui.Ops, viewport image.Poi
}
d.reader.Reset(root)
state := drawState{
clip: clip,
rect: true,
clip: clip,
rect: true,
color: color.RGBA{A: 0xff},
}
d.collectOps(&d.reader, state)
}