summaryrefslogtreecommitdiffstats
path: root/scons/generic.py
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-29 18:57:13 -0600
committerBrian Paul <[email protected]>2009-09-29 18:57:13 -0600
commit65765c9f2c5d3568608bde57db0bf44d6b724755 (patch)
tree9825cbfd5c239e2bef19d1ea40b1fc1cb743592c /scons/generic.py
parent3c794e45b02c66ce3f52fe359f733e4d7d2ce315 (diff)
glsl: rewrite sqrt(x) intrinsic to handle x=0
Since sqrt() is basically implemented in terms of RSQ/RCP we'll do a divide by zero if x=0 and wind up with unpredictable results. Now use CMP instruction to test for x<=0 and return zero in that case.
Diffstat (limited to 'scons/generic.py')
0 files changed, 0 insertions, 0 deletions