draw: fix MSVC divide-by-zero compilation error

Kind of lame, but it works.
This commit is contained in:
Brian Paul 2013-01-22 16:41:56 -07:00
parent cdd3f5496a
commit 26a05b5005
1 changed files with 2 additions and 1 deletions

View File

@ -149,10 +149,11 @@ static boolean TAG(do_cliptest)( struct pt_post_vs *pvs,
* to NaN to help catch potential errors later.
*/
else {
float zero = 0.0f;
position[0] =
position[1] =
position[2] =
position[3] = 0.0f / 0.0f;
position[3] = zero / zero; /* MSVC doesn't accept 0.0 / 0.0 */
}
#endif