mesa: Use appropriate call convention in VertexAttribI*v.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 25 Mar 2011 15:41:43 +0000 (15:41 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 25 Mar 2011 16:22:30 +0000 (16:22 +0000)
commit7fbe020bbcfeefbb2b6d6d8d0e23bca99bc06bf1
tree4b8526c75a86ce158d4dd2b08a4ecc25da0f040b
parent5858abec6efd01d6d190d9116ff803c096bc279b
mesa: Use appropriate call convention in VertexAttribI*v.

We were using typecasts because the functions pointers are polymorphic
in the second argument type, which.

Surprisingly the wrong calling convention didn't cause crashes on Windows,
but it was causing certain registers to be trashed in MSVC optimized
builds, when processing callists in the ClearView RC Flight Simulator.
src/mesa/main/api_arrayelt.c