diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2010-04-14 23:57:41 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2010-04-14 23:57:41 +0200 |
commit | 5cf24d751921f4af021550dcc81b621a6fcb0a19 (patch) | |
tree | db657e394d5ca56ddd36ad3f1ce8ab90852e10d2 /draw | |
parent | 1eb85415e888d1e31f528ecf92d726ee1b3f5d3f (diff) | |
download | mupdf-5cf24d751921f4af021550dcc81b621a6fcb0a19.tar.xz |
Remove test for NaN in shademesh rendering since it no longer appears.
The following patch is removed:
Wed, 09 Apr 2008 17:00:18 glenn.kennard@gmail.com
Check for NaN in fz_rendershade.
Fixes crash rendering chinesopera.pdf
Since the patch below makes NaN not appear:
Sun, 20 Apr 2008 01:15:15 sebras@hotmail.com
Axial shadings with no length should not extend, and the same position on the axis may be used for the entire mesh.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/meshdraw.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/draw/meshdraw.c b/draw/meshdraw.c index b3d35ba7..076b2c92 100644 --- a/draw/meshdraw.c +++ b/draw/meshdraw.c @@ -350,16 +350,12 @@ fz_rendershade(fz_shade *shade, fz_matrix ctm, fz_colorspace *destcs, fz_pixmap p.x = shade->mesh[(i * 3 + k) * n + 0]; p.y = shade->mesh[(i * 3 + k) * n + 1]; p = fz_transformpoint(ctm, p); - if (isnan(p.y) || isnan(p.x)) // How is this happening? - goto baddata; tri[k][0] = p.x; tri[k][1] = p.y; for (j = 2; j < n; j++) tri[k][j] = shade->mesh[( i * 3 + k) * n + j] * 255; } fz_drawtriangle(temp, tri[0], tri[1], tri[2], n); -baddata: - ; } if (shade->usefunction) |