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:
Elias Naur
2021-05-15 15:25:02 +02:00
parent e90c99a66c
commit 21c319ace5
14 changed files with 104 additions and 102 deletions
+4
View File
@@ -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
}