app/internal/gpu: rename NewGPU to New

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-28 12:18:35 +01:00
parent eb8745eb32
commit 9528a6e0d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ var (
attribUV gl.Attrib = 1 attribUV gl.Attrib = 1
) )
func NewGPU(ctx gl.Context) (*GPU, error) { func New(ctx gl.Context) (*GPU, error) {
g := &GPU{ g := &GPU{
frames: make(chan frame), frames: make(chan frame),
results: make(chan frameResult), results: make(chan frameResult),
+1 -1
View File
@@ -289,7 +289,7 @@ func (w *Window) run(opts *window.Options) {
var ctx gl.Context var ctx gl.Context
ctx, err = w.driver.NewContext() ctx, err = w.driver.NewContext()
if err == nil { if err == nil {
w.gpu, err = gpu.NewGPU(ctx) w.gpu, err = gpu.New(ctx)
} }
} }
var frame *op.Ops var frame *op.Ops