internal/rendertest: tolerate lack of headless suppport

Fixes the builders.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-22 17:28:12 +02:00
parent 59f07023d4
commit b664d68a7c
2 changed files with 13 additions and 15 deletions
+1 -4
View File
@@ -25,10 +25,7 @@ var (
func setupBenchmark(b *testing.B) (layout.Context, *headless.Window, *material.Theme) {
sz := image.Point{X: 1024, Y: 1200}
w, err := headless.NewWindow(sz.X, sz.Y)
if err != nil {
b.Error(err)
}
w := newWindow(b, sz.X, sz.Y)
ops := new(op.Ops)
gtx := layout.Context{
Ops: ops,