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
@@ -83,7 +83,7 @@ func (l *renderLoop) renderLoop(glctx window.Context) error {
g.Collect(frame.viewport, frame.ops)
// Signal that we're done with the frame ops.
l.ack <- struct{}{}
g.Frame(frame.viewport)
g.BeginFrame()
var res frameResult
res.err = glctx.Present()
g.EndFrame()