wlroots-hyprland/render/gles2
Simon Ser 677a3f2f88 render/gles2: default to highp if available
The spec [1] says that the maximum value for a mediump float
is at least 2¹⁴ in section 4.5.2. However, when using a 4k
resolution texture coordinates will exceed this value. This causes
issues on drivers which implement mediump as a 16-bit [2].

Switch to highp. There's a twist: on GLES2, support for highp is
optional. So we need to guard it with cute GL_FRAGMENT_PRECISION_HIGH
ifdefs.

[1]: https://registry.khronos.org/OpenGL/specs/es/2.0/GLSL_ES_Specification_1.00.pdf
[2]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21082
2023-02-02 22:54:13 +01:00
..
shaders render/gles2: default to highp if available 2023-02-02 22:54:13 +01:00
meson.build render/gles2: move shaders to individual files 2022-10-28 11:46:06 +00:00
pixel_format.c render/gles: add support for some 16-bpc unsigned shm formats 2022-05-07 16:25:38 +00:00
renderer.c render/gles2: use correct type for shader type 2023-02-02 22:42:42 +01:00
texture.c wlr_texture: Expose owning renderer 2022-12-01 04:41:43 -05:00