mesa: Use clear_teximage_fields() in place of _mesa_init_teximage_fields()
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 3 Mar 2014 19:40:31 +0000 (11:40 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 4 Mar 2014 19:22:58 +0000 (11:22 -0800)
This patch makes no functional changes to the code.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/teximage.c

index 0519d221fe6f7d3800d6e5fe17f7d1b22890e736..1cd6aded721450757de7f8778671db4008fa2803 100644 (file)
@@ -4427,8 +4427,7 @@ teximagemultisample(GLuint dims, GLenum target, GLsizei samples,
       }
       else {
          /* clear all image fields */
-         _mesa_init_teximage_fields(ctx, texImage,
-               0, 0, 0, 0, GL_NONE, MESA_FORMAT_NONE);
+         clear_teximage_fields(texImage);
       }
    }
    else {