mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
gpu/internal/opengl,internal: move sRGB emulation to OpenGL driver
There is only one driver but several backends (EGL, WebGL). Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -14,6 +14,10 @@ type (
|
||||
Object struct{ V uint }
|
||||
)
|
||||
|
||||
func (u Framebuffer) Valid() bool {
|
||||
return u.V != 0
|
||||
}
|
||||
|
||||
func (u Uniform) Valid() bool {
|
||||
return u.V != -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user