Elias Naur
03ee75fd72
gpu/internal/opengl: support sRGB emulation for desktop OpenGL
...
Desktop OpenGL implements a GL_FRAMEBUFFER_SRGB setting; query that instead
of the frambuffer color encoding.
With this change it is no longer necessary to enable FRAMEBUFFER_SRGB
in the macOS setup; remove it.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-05-18 14:26:45 +01: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
f930e3f3d7
internal/gl: implement glGetProgramBinary
...
Useful for debugging shader compiler issues, such as those that may
cause
https://github.com/linebender/piet-gpu/issues/83
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2021-04-18 17:20:19 +02: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