app/headless,internal/rendertest: report errors from headless renders

Updates gio#144

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-07-04 16:35:18 +02:00
parent d53c92791f
commit 30ad63283b
3 changed files with 21 additions and 10 deletions
+2 -2
View File
@@ -106,8 +106,8 @@ func (w *Window) Release() {
// Frame replace the window content and state with the
// operation list.
func (w *Window) Frame(frame *op.Ops) {
contextDo(w.ctx, func() error {
func (w *Window) Frame(frame *op.Ops) error {
return contextDo(w.ctx, func() error {
w.gpu.Collect(w.size, frame)
w.gpu.BeginFrame()
w.gpu.EndFrame()