Elias Naur
0397cbb599
ui/app: add basic webassembly/webgl support
...
It is still slow. And crashy: https://github.com/golang/go/issues/31980 .
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-11 13:17:57 +02:00
Elias Naur
c6863581e0
ui/app/internal/gl: add workaround for broken sRGB FBOs
...
Safari on macOS don't treat sRGB correctly.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-10 17:50:14 +02:00
Elias Naur
f5fa968038
ui/app/internal/gpu: implement OpenGL ES 2 float fbo fallbacks
...
Also applicable to WebGL.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 17:57:10 +02:00
Elias Naur
8df5feeeea
ui/app: make opengl objects structs
...
WebGL use opaque values for object handles, not integers. To ensure
portability, wrap handle types with a struct.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 17:57:10 +02:00
Elias Naur
2af0f63cfb
ui/app/internal/gl: parse WebGL versions
...
And drop a redundant error message while here.
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 17:57:09 +02:00
Elias Naur
350dc19108
ui/app/internal/gl: invalidate the correct fbo in sRGB fallback
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-05-08 14:28:43 +02:00
Elias Naur
0f05231c35
all: initial import
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2019-03-31 10:47:22 +02:00