[Mesa-dev] [PATCH] mesa: Add missing else in do_row_3D

Brian Paul brianp at vmware.com
Mon Oct 18 07:11:19 PDT 2010


On 10/17/2010 03:21 PM, Brian Rogers wrote:
> This fixes erroneous "bad format in do_row()" messages
> ---
>   src/mesa/main/mipmap.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
> index d65aecd..11d5a05 100644
> --- a/src/mesa/main/mipmap.c
> +++ b/src/mesa/main/mipmap.c
> @@ -606,7 +606,7 @@ do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
>            FILTER_3D(0);
>         }
>      }
> -   if ((datatype == GL_BYTE)&&  (comps == 4)) {
> +   else if ((datatype == GL_BYTE)&&  (comps == 4)) {
>         DECLARE_ROW_POINTERS(GLbyte, 4);
>
>         for (i = j = 0, k = k0; i<  (GLuint) dstWidth;

Committed.  Thanks!

-Brian



More information about the mesa-dev mailing list