ra: Use bool instead of GLboolean.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Feb 2014 03:32:24 +0000 (19:32 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Mar 2014 17:15:18 +0000 (10:15 -0700)
commit786a6472450b50977e6906e27d5f481e00b05d73
tree2f41c1585aa5214ba6d2a7de461d6da22a264958
parentde7ad2c88f4ec243c95eaed22c41d0e537912e01
ra: Use bool instead of GLboolean.

This isn't the GL API, so there's no reason to use GLboolean.

Using bool is safer: any non-zero value is treated as "true".  When
converting a value to a GLboolean, all but the low byte is discarded,
which means that values like 256 will be incorrectly rendered as false.

Done via the following vim commands:
:%s/GLboolean/bool/g
:%s/GL_TRUE/true/g
:%s/GL_FALSE/false/g
and one line of manual whitespace tidying.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/program/register_allocate.c
src/mesa/program/register_allocate.h