summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-01-17 10:28:10 -0800
committerIan Romanick <[email protected]>2012-01-24 15:39:47 -0800
commit09b6308a2deadd3b2ea7b11ec44cd0f437454d40 (patch)
treec0db4639886a8d251ea025e77755477ac00fac54 /src/mesa/main/fbobject.c
parent30e9bfd84ad64655a5ed0d1f84f5877cb3ae1b5a (diff)
glsl: Fix isinf() for non-C99-compliant compilers.
Commit ede60bc4670a8d9c14921c77abee1ac57fc0e6bf (glsl: Add isinf() and isnan() builtins) uses "+INF" in the .ir file to represent infinity. This worked on C99-compliant compilers, since the s-expression reader uses strtod() to read numbers, and C99 requires strtod() to understand "+INF". However, it didn't work on non-C99-compliant compilers such as MSVC. This patch modifies the s-expression reader to explicitly check for "+INF" rather than relying on strtod() to support it. This is a candidate for the 8.0 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44767 Tested-by: Morgan Armand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> (cherry picked from commit 4f82fed49359676fc19598f8c65ca51958dd2d79)
Diffstat (limited to 'src/mesa/main/fbobject.c')
0 files changed, 0 insertions, 0 deletions