mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app/internal/gpu: rename NewGPU to New
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -239,7 +239,7 @@ var (
|
||||
attribUV gl.Attrib = 1
|
||||
)
|
||||
|
||||
func NewGPU(ctx gl.Context) (*GPU, error) {
|
||||
func New(ctx gl.Context) (*GPU, error) {
|
||||
g := &GPU{
|
||||
frames: make(chan frame),
|
||||
results: make(chan frameResult),
|
||||
|
||||
+1
-1
@@ -289,7 +289,7 @@ func (w *Window) run(opts *window.Options) {
|
||||
var ctx gl.Context
|
||||
ctx, err = w.driver.NewContext()
|
||||
if err == nil {
|
||||
w.gpu, err = gpu.NewGPU(ctx)
|
||||
w.gpu, err = gpu.New(ctx)
|
||||
}
|
||||
}
|
||||
var frame *op.Ops
|
||||
|
||||
Reference in New Issue
Block a user