mesa: Set the "Integer" field of gl_client_array properly.
authorPaul Berry <stereotype441@gmail.com>
Tue, 1 Nov 2011 00:29:17 +0000 (17:29 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 2 Nov 2011 16:29:35 +0000 (09:29 -0700)
commit8f84c237b360be69f9b6ac51465c729b3ada196a
tree1a6df07c54e20bce8bc9c7f9ee70eb62bef6c689
parent9abda92b270596fd3a5e2e8b74e3fc3255da70ce
mesa: Set the "Integer" field of gl_client_array properly.

This patch ensures that gl_client_array::Integer is properly set to
GL_TRUE for vertex attributes specified using glVertexAttribIPointer,
and to GL_FALSE for vertex attributes specified using
glVertexAttribPointer, so that the vertex attributes can be
interpreted properly by driver back-ends.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/arrayobj.c
src/mesa/main/varray.c
src/mesa/vbo/vbo_split_copy.c