mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app/internal/srgb: rename NewSRGBFBO to New and SRGBFBO to FBO
The srgb package was recently created to contain just the sRGB emulation, but the names weren't shortened accordingly. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -22,7 +22,7 @@ type glContext interface {
|
||||
|
||||
type glBackend struct {
|
||||
glContext
|
||||
srgb *srgb.SRGBFBO
|
||||
srgb *srgb.FBO
|
||||
}
|
||||
|
||||
func newContext(width, height int) (backend, error) {
|
||||
@@ -39,7 +39,7 @@ func newContext(width, height int) (backend, error) {
|
||||
return nil, err
|
||||
}
|
||||
defer glctx.ReleaseCurrent()
|
||||
fbo, err := srgb.NewSRGBFBO(glctx.Functions())
|
||||
fbo, err := srgb.New(glctx.Functions())
|
||||
if err != nil {
|
||||
glctx.Release()
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user