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....@linux.intel.com>
---

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

Reviewed-by: Brian Paul <bri...@vmware.com>

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to