summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorFrancesco Ansanelli <[email protected]>2016-08-16 14:38:46 +0200
committerMarek Olšák <[email protected]>2016-08-17 14:16:29 +0200
commit120c9c6380e83e732bd105619d6303498ef4efb7 (patch)
tree5677cd007b0aaa99d8c8a80739926eb7e1dd261c /src/mesa/state_tracker
parent57a8991020ae28c13b535c4d0547b46daaa1c83f (diff)
mesa/st: use llabs instead of abs for long args (v2)
v2: long has 32bit on Windows (Marek) Signed-off-by: Francesco Ansanelli <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom_array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c
index dcead27ea36..1c2cfa791cd 100644
--- a/src/mesa/state_tracker/st_atom_array.c
+++ b/src/mesa/state_tracker/st_atom_array.c
@@ -363,7 +363,7 @@ is_interleaved_arrays(const struct st_vertex_program *vp,
if (bufObj != firstBufObj)
return GL_FALSE; /* arrays in different VBOs */
- if (abs(array->Ptr - firstPtr) > firstStride)
+ if (llabs(array->Ptr - firstPtr) > firstStride)
return GL_FALSE; /* arrays start too far apart */
if ((!_mesa_is_bufferobj(bufObj)) != userSpaceBuffer)