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:
Elias Naur
2020-02-15 19:45:59 +01:00
parent b34216c124
commit 05485a79a6
4 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -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