[Mesa-dev] [PATCH 1/4] glsl: Add missing bool case in glsl_type::get_scalar_type

Matt Turner mattst88 at gmail.com
Wed Mar 27 12:59:44 PDT 2013


On Wed, Mar 27, 2013 at 9:30 AM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Since the case was missing bec4->get_scalar_type() would return bvec4,

bvec4.

Series is Reviewed-by: Matt Turner <mattst88 at gmail.com>

> but vec4->get_scalar_type() would return float.
>
> NOTE: This is a candidate for stable branches.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/glsl/glsl_types.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
> index 8b0a248..419761a 100644
> --- a/src/glsl/glsl_types.cpp
> +++ b/src/glsl/glsl_types.cpp
> @@ -476,6 +476,8 @@ const glsl_type *glsl_type::get_scalar_type() const
>        return int_type;
>     case GLSL_TYPE_FLOAT:
>        return float_type;
> +   case GLSL_TYPE_BOOL:
> +      return bool_type;
>     default:
>        /* Handle everything else */
>        return type;
> --
> 1.8.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list