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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user