Replace is_integer_base_type macro with glsl_type::is_integer method

This commit is contained in:
Ian Romanick
2010-03-26 14:38:37 -07:00
parent 0471e8b089
commit 40176e249f
2 changed files with 9 additions and 5 deletions

View File

@@ -255,8 +255,7 @@ modulus_result_type(const struct glsl_type *type_a,
* integer vectors. The operand types must both be signed or both be
* unsigned."
*/
if (! is_integer_base_type(type_a->base_type)
|| ! is_integer_base_type(type_b->base_type)
if (!type_a->is_integer() || !type_b->is_integer()
|| (type_a->base_type != type_b->base_type)) {
return glsl_type::error_type;
}