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
+1 -1
View File
@@ -125,7 +125,7 @@ func (w *Window) update(frame *op.Ops) {
}
func (w *Window) draw(frameStart time.Time, size image.Point, frame *op.Ops) {
sync := w.loop.Draw(w.queue.q.Profiling(), size, frame)
sync := w.loop.Draw(size, frame)
w.queue.q.Frame(frame)
switch w.queue.q.TextInputState() {
case input.TextInputOpen: