mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
mesa/st: use llabs instead of abs for long args (v2)
v2: long has 32bit on Windows (Marek) Signed-off-by: Francesco Ansanelli <francians@gmail.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
57a8991020
commit
120c9c6380
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue