app/internal/gpu: remove profile flag

Automatically determine whether to profile GPU operations from
the existence of a profiling op.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-07 19:59:36 +01:00
parent 320535a978
commit 81f958fc70
4 changed files with 21 additions and 18 deletions
+3 -3
View File
@@ -90,9 +90,9 @@ func (w *Window) Release() {
// operation list.
func (w *Window) Frame(frame *op.Ops) {
contextDo(w.ctx, func() error {
w.gpu.Collect(false, w.size, frame)
w.gpu.Frame(false, w.size)
w.gpu.EndFrame(false)
w.gpu.Collect(w.size, frame)
w.gpu.Frame(w.size)
w.gpu.EndFrame()
return nil
})
}