glsl/types: Handle all bit sizes in glsl_type_is_integer

All of the callers of this function really just want to know if the type
is an integer and don't care about bit size.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
Jason Ekstrand
2019-06-06 11:30:45 -05:00
parent feb0cdcb52
commit 0d1fb380b1
+1 -1
View File
@@ -355,7 +355,7 @@ glsl_type_is_boolean(const struct glsl_type *type)
bool
glsl_type_is_integer(const struct glsl_type *type)
{
return type->is_integer();
return glsl_base_type_is_integer(type->base_type);
}
bool