gpu: rename method GPU.Frame to BeginFrame and drop redundant argument

The viewport size was already specified in the call to Collect.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-07 21:34:35 +01:00
parent 3b6646933d
commit d2d495416a
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ func (w *Window) Release() {
func (w *Window) Frame(frame *op.Ops) {
contextDo(w.ctx, func() error {
w.gpu.Collect(w.size, frame)
w.gpu.Frame(w.size)
w.gpu.BeginFrame()
w.gpu.EndFrame()
return nil
})