glsl: Avoid GLboolean vs bool arithmetic MSVC warnings.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 18 Mar 2015 14:21:15 +0000 (14:21 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 22 Mar 2015 08:23:23 +0000 (08:23 +0000)
commitd01a7cdae576162791813c131027a6e675a4e6c7
tree132e1880f8d48bbb14006d78c3891d7449e3b58b
parent7c7954b09dd28502aedb3eed312672620b9e6b7a
glsl: Avoid GLboolean vs bool arithmetic MSVC warnings.

Note that GLboolean is an alias for unsigned char, which lacks the
implicit true/false semantics that C++/C99 bool have.

Reviewed-by: Brian Paul <brianp@vmware.com>
v2: Change gl_shader::IsES and gl_shader_program::IsES to be bool as
recommended by Ian Romanick.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/linker.cpp
src/mesa/main/mtypes.h