mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
draw/clip: Use NAN to make MSVC happy
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6162>
This commit is contained in:
parent
74f95e719b
commit
6de0317e5a
1 changed files with 2 additions and 2 deletions
|
|
@ -26,6 +26,7 @@
|
|||
**************************************************************************/
|
||||
|
||||
#include "util/u_bitcast.h"
|
||||
#include <math.h>
|
||||
|
||||
static boolean TAG(do_cliptest)( struct pt_post_vs *pvs,
|
||||
struct draw_vertex_info *info,
|
||||
|
|
@ -182,11 +183,10 @@ 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] = zero / zero; /* MSVC doesn't accept 0.0 / 0.0 */
|
||||
position[3] = NAN;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue