aboutsummaryrefslogtreecommitdiff
path: root/include/render/allocator
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-02 22:43:31 +0100
committerSimon Ser <contact@emersion.fr>2023-02-02 22:54:13 +0100
commit677a3f2f8847ed2de49dd60868f9d9487a546f58 (patch)
treedbd49bc3708a75bec31ce4e44f4e275a89e2cc07 /include/render/allocator
parent0534d12b28248cf149a829b122a8c3d1b22b0003 (diff)
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
Diffstat (limited to 'include/render/allocator')
0 files changed, 0 insertions, 0 deletions