wined3d: Handle zero-length vectors for WINED3DSIH_NRM.
commitbef792f5ff2cd87db98b58acb182123ef76be6e6
authorHenri Verbeet <hverbeet@codeweavers.com>
Mon, 1 Feb 2010 12:52:55 +0000 (1 13:52 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 1 Feb 2010 13:16:11 +0000 (1 14:16 +0100)
tree7ad838a8ceebbd1cb59ce449d0afe1de62a621b3
parentf1373d57c1e2c464c7c99e9fa85c24288e0127b3
wined3d: Handle zero-length vectors for WINED3DSIH_NRM.

Unfortunately there's no reliable way to generate infinity in GLSL, but a
sufficiently large value will probably do. The important part of the patch is
that we don't generate NaN, because that will keep propagating through the
entire shader.
dlls/wined3d/glsl_shader.c