Elias Naur
68fa64dfd5
gpu/internal/opengl: detect sRGB triple in terms of srgbaTripleFor
...
Refactor in preparation for relaxing sRGB format requirements.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-07-29 08:37:59 +02:00
Elias Naur
060ae1cdf9
all: add //go:build lines
...
They're automatically added by Go 1.17 source formatters. This change
adds them all now.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-07-26 15:17:51 +02:00
Elias Naur
21c319ace5
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 >
2021-05-16 10:44:45 +02:00
Elias Naur
e90c99a66c
internal/egl: replace glFinish with eglWaitClient
...
glFinish depends on package gl which is about to require a function
pointer loader. eglWaitClient is in the EGL API and always available.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-05-15 11:04:06 +02:00
Elias Naur
5894127204
internal/unsafe: get rid of GoString
...
The only users were GOOS=windows code, which can use
golang.org/x/sys/windows.BytePtrToString instead.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-03-11 11:19:53 +01:00
Elias Naur
7bc0603d7e
internal/gl: rename internal/glimpl
...
Now that the OpenGL driver package is named "opengl", we can finally get
rid of the ugly "glimpl" name.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-03-06 14:27:44 +01:00
Elias Naur
3af4e6accf
internal/egl: move app/internal/egl
...
We're about to move package app/headless to gpu/headless, and it needs
the egl package.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-03-06 14:26:47 +01:00