diff options
author | Brian Paul <[email protected]> | 2013-01-22 16:41:56 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-01-22 16:44:11 -0700 |
commit | 26a05b5005fd89cad0864258a16951d812b923f8 (patch) | |
tree | e69e7767116fad4640e5dab2e227e445650fab38 | |
parent | cdd3f5496ad2d6a252bd7ad78f5034db549d4921 (diff) |
draw: fix MSVC divide-by-zero compilation error
Kind of lame, but it works.
-rw-r--r-- | src/gallium/auxiliary/draw/draw_cliptest_tmp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_cliptest_tmp.h b/src/gallium/auxiliary/draw/draw_cliptest_tmp.h index 8b2dcdabe01..48f234931cd 100644 --- a/src/gallium/auxiliary/draw/draw_cliptest_tmp.h +++ b/src/gallium/auxiliary/draw/draw_cliptest_tmp.h @@ -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 |