mesa: add const qualifier, comment on can_avoid_reallocation()
authorBrian Paul <brianp@vmware.com>
Sat, 24 Sep 2016 13:33:59 +0000 (07:33 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 6 Oct 2016 17:29:31 +0000 (11:29 -0600)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/teximage.c

index 3f3d4307235953faaecc3538d6f7e7ee92d0c21e..1d0a6a2d15732717c0cbeca9765ee8efc34c880b 100644 (file)
@@ -3571,8 +3571,15 @@ formats_differ_in_component_sizes(mesa_format f1, mesa_format f2)
    return GL_FALSE;
 }
 
+
+/**
+ * Check if the given texture format and size arguments match those
+ * of the texture image.
+ * \param return true if arguments match, false otherwise.
+ */
 static bool
-can_avoid_reallocation(struct gl_texture_image *texImage, GLenum internalFormat,
+can_avoid_reallocation(const struct gl_texture_image *texImage,
+                       GLenum internalFormat,
                        mesa_format texFormat, GLint x, GLint y, GLsizei width,
                        GLsizei height, GLint border)
 {