mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
use IROUND to convert depth values from float to int (bug 690728)
This commit is contained in:
parent
ea20dfa7a8
commit
3a4231e132
2 changed files with 7 additions and 7 deletions
|
|
@ -1,10 +1,10 @@
|
|||
/* $Id: s_aalinetemp.h,v 1.21 2002/08/07 00:45:07 brianp Exp $ */
|
||||
/* $Id: s_aalinetemp.h,v 1.22 2003/02/21 21:00:27 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 4.1
|
||||
* Version: 5.1
|
||||
*
|
||||
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
|
|
@ -54,7 +54,7 @@ NAME(plot)(GLcontext *ctx, struct LineInfo *line, int ix, int iy)
|
|||
* solving the plane equations at (ix,iy).
|
||||
*/
|
||||
#ifdef DO_Z
|
||||
line->span.array->z[i] = (GLdepth) solve_plane(fx, fy, line->zPlane);
|
||||
line->span.array->z[i] = (GLdepth) IROUND(solve_plane(fx, fy, line->zPlane));
|
||||
#endif
|
||||
#ifdef DO_FOG
|
||||
line->span.array->fog[i] = solve_plane(fx, fy, line->fPlane);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: s_aatritemp.h,v 1.34 2003/01/28 00:14:32 brianp Exp $ */
|
||||
/* $Id: s_aatritemp.h,v 1.35 2003/02/21 21:00:20 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -292,7 +292,7 @@
|
|||
array->coverage[count] = coverage;
|
||||
#endif
|
||||
#ifdef DO_Z
|
||||
array->z[count] = (GLdepth) solve_plane(cx, cy, zPlane);
|
||||
array->z[count] = (GLdepth) IROUND(solve_plane(cx, cy, zPlane));
|
||||
#endif
|
||||
#ifdef DO_FOG
|
||||
array->fog[count] = solve_plane(cx, cy, fogPlane);
|
||||
|
|
@ -398,7 +398,7 @@
|
|||
array->coverage[ix] = coverage;
|
||||
#endif
|
||||
#ifdef DO_Z
|
||||
array->z[ix] = (GLdepth) solve_plane(cx, cy, zPlane);
|
||||
array->z[ix] = (GLdepth) IROUND(solve_plane(cx, cy, zPlane));
|
||||
#endif
|
||||
#ifdef DO_FOG
|
||||
array->fog[ix] = solve_plane(cx, cy, fogPlane);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue