mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 08:25:34 +00:00
gpu/internal/rendertest: only dump images when -saveimages is set
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -50,9 +50,7 @@ func finishBenchmark(b *testing.B, w *headless.Window) {
|
||||
if err != nil {
|
||||
b.Error(err)
|
||||
}
|
||||
if err := saveImage(b.Name()+".png", img); err != nil {
|
||||
b.Error(err)
|
||||
}
|
||||
saveImage(b, b.Name()+".png", img)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user