Summary: | ios8 webgl shader compiler thinks that pow(negative_float, 2.0) is zero | ||
---|---|---|---|
Product: | WebKit | Reporter: | makc <makc.the.great> |
Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | ap, dino, gman, makc.the.great |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | iPhone / iPad | ||
OS: | Unspecified |
Description
makc
2014-08-13 14:35:07 PDT
I actually have a recording of how that demo looked prior to commit: https://www.youtube.com/watch?v=y5-VwWlFZqo pow(x < 0, ...) is undefined behavior according to the spec According to the OpenGL ES GLSL 1.0 spec https://www.khronos.org/files/opengles_shading_language.pdf Section 8.2 genType pow (genType x, genType y) Returns x raised to the y power, i.e., x ^ y Results are undefined if x < 0. Results are undefined if x = 0 and y <= 0. |