summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/graw_util.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-12-01 20:24:06 +0000
committerJosé Fonseca <[email protected]>2014-12-01 20:24:51 +0000
commit0806bf88158cb3ac865762285f11082114520c48 (patch)
tree5ac865713e4e3bf0be9b41cc067c4e81083ce917 /src/gallium/tests/graw/graw_util.h
parent120426b13d8ef3d154301a1f8741230fa395fc13 (diff)
graw: Avoid 'near'/'far' variables.
They are defined by windows.h, which got included slightly more frequently than before with u_atomic.h
Diffstat (limited to 'src/gallium/tests/graw/graw_util.h')
-rw-r--r--src/gallium/tests/graw/graw_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/tests/graw/graw_util.h b/src/gallium/tests/graw/graw_util.h
index 72b6bc68c46..afcc584863e 100644
--- a/src/gallium/tests/graw/graw_util.h
+++ b/src/gallium/tests/graw/graw_util.h
@@ -185,12 +185,12 @@ static INLINE void
graw_util_viewport(struct graw_info *info,
float x, float y,
float width, float height,
- float near, float far)
+ float zNear, float zFar)
{
- float z = near;
+ float z = zNear;
float half_width = width / 2.0f;
float half_height = height / 2.0f;
- float half_depth = (far - near) / 2.0f;
+ float half_depth = (zFar - zNear) / 2.0f;
struct pipe_viewport_state vp;
vp.scale[0] = half_width;