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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user