RESOLVED DUPLICATE of bug 268071 268070
The usage of flat qualifier breaks the WebGL context in Safari
https://bugs.webkit.org/show_bug.cgi?id=268070
Summary The usage of flat qualifier breaks the WebGL context in Safari
Daniel Eke
Reported 2024-01-25 03:01:44 PST
We have run into a regression regarding the usage of the "flat" storage qualifier in GLSL shaders, which causes the browser to lose the WebGL context across several tabs. This breaks rendering of any further WebGL content and to recover, the browser needs to be force-closed and opened again. The issue was reproducible in Safari on multiple iPad models (MK2K3KN/A and MQDW2TY/A) on one iPhone model (MT9G2ZD/A) and across different iOS versions (16.3.1 and 17.3). On desktop environment we were unable to reproduce it. The exact conditions are not clear, as the browser can render some frames before it loses the context, but usually it happens within a couple of seconds. As a minimal example, we've set the following property in a vertex shader: flat out float v_test; ... v_test = 1.0; And accessed it in the fragment shader similar to: flat in float v_test; ... float alpha = v_test; glFragColor = vec4(1.0, 1.0, 1.0, alpha); The repeated usage of these shaders breaks the context in a couple of seconds.
Attachments
Ahmad Saleem
Comment 1 2024-01-25 18:05:34 PST
*** Bug 268071 has been marked as a duplicate of this bug. ***
Ahmad Saleem
Comment 2 2024-01-25 18:06:17 PST
*** This bug has been marked as a duplicate of bug 268071 ***
Note You need to log in before you can comment on or make changes to this bug.