[Piglit] [PATCH 1/5] texture-packed-formats: Drop unused blend code.

Kenneth Graunke kenneth at whitecape.org
Fri Oct 24 11:38:13 PDT 2014


On Friday, October 24, 2014 06:07:47 PM Eric Anholt wrote:
> ---
>  tests/texturing/texture-packed-formats.c | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/tests/texturing/texture-packed-formats.c 
b/tests/texturing/texture-packed-formats.c
> index 4ef3bd8..0f6519d 100644
> --- a/tests/texturing/texture-packed-formats.c
> +++ b/tests/texturing/texture-packed-formats.c
> @@ -142,9 +142,6 @@ static const struct name_format IntFormats[] = {
>  
>  #define NUM_INT_FORMATS (sizeof(IntFormats) / sizeof(IntFormats[0]))
>  
> -static GLboolean Blend = GL_FALSE;  /* XXX not used at this time */
> -
> -
>  static void
>  MakeTexture(GLuint dims, const struct pixel_format *format,
>              GLenum intFormat, GLboolean swap)
> @@ -283,9 +280,6 @@ Test(GLuint intFmt, GLuint dims)
>           else
>              glEnable(GL_TEXTURE_2D);
>  
> -         if (Blend)
> -            glEnable(GL_BLEND);
> -
>           glBegin(GL_POLYGON);
>           glTexCoord3f(0, 0, 0.5);  glVertex2f(0, 0);
>           glTexCoord3f(1, 0, 0.5);  glVertex2f(w, 0);
> @@ -298,7 +292,6 @@ Test(GLuint intFmt, GLuint dims)
>           else
>              glDisable(GL_TEXTURE_2D);
>  
> -         glDisable(GL_BLEND);
>           glPopMatrix();
>  
>           /* test rendering */
> @@ -357,6 +350,5 @@ piglit_init(int argc, char **argv)
>     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
>     glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
>     glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
> -   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
>  }
>  
> 

Series is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20141024/90e225a9/attachment.sig>


More information about the Piglit mailing list