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
@@ -16,7 +16,7 @@ type context struct {
ctx js.Value
cnv js.Value
f *glimpl.Functions
srgbFBO *srgb.SRGBFBO
srgbFBO *srgb.FBO
}
func newContext(w *window) (*context, error) {
@@ -78,7 +78,7 @@ func (c *context) Unlock() {}
func (c *context) MakeCurrent() error {
if c.srgbFBO == nil {
var err error
c.srgbFBO, err = srgb.NewSRGBFBO(c.f)
c.srgbFBO, err = srgb.New(c.f)
if err != nil {
c.Release()
c.srgbFBO = nil