[Mesa-dev] [PATCH 2/5] mesa: complete the GL_TEXTURE_SWIZZLE* setup

Brian Paul brianp at vmware.com
Wed Nov 2 06:17:49 PDT 2011


On 11/02/2011 03:56 AM, Yuanhan Liu wrote:
> The ARB_texture_swizzle spec says:
>      The error INVALID_OPERATION is generated if TexParameteri,
>      TexParameterf, TexParameteriv, or TexParameterfv, parameter<pname>
>      is TEXTURE_SWIZZLE_R, TEXTURE_SWIZZLE_G,  TEXTURE_SWIZZLE_B,
>      or TEXTURE_SWIZZLE_A, and<param>  is not RED, GREEN, BLUE, ALPHA,
>      ZERO, or ONE.
>
>      The error INVALID_OPERATION is generated if TexParameteriv, or
>      TexParameterfv, parameter<pname>  TEXTURE_SWIZZLE_RGBA, and the four
>      consecutive values pointed to by<param>  are not all RED, GREEN, BLUE,
>      ALPHA, ZERO, or ONE.
>
> So, the GL_TEXTURE_SWIZZLE* pname is legal for glTexParameterf(v)
>
> Signed-off-by: Yuanhan Liu<yuanhan.liu at linux.intel.com>
> ---

Maybe note in the commit message that this is a candidate for the 7.11 
branch.

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list