mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app/internal/srgb: move sRGB emulation to new internal package
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -7,12 +7,11 @@ import (
|
||||
"syscall/js"
|
||||
|
||||
"gioui.org/app/internal/glimpl"
|
||||
"gioui.org/gpu/gl"
|
||||
)
|
||||
|
||||
type jsContext struct {
|
||||
ctx js.Value
|
||||
f gl.Functions
|
||||
f *glimpl.Functions
|
||||
}
|
||||
|
||||
func newContext() (*jsContext, error) {
|
||||
@@ -38,7 +37,7 @@ func newContext() (*jsContext, error) {
|
||||
return c, nil
|
||||
}
|
||||
|
||||
func (c *jsContext) Functions() gl.Functions {
|
||||
func (c *jsContext) Functions() *glimpl.Functions {
|
||||
return c.f
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user