Mesa (master): mesa: add const qualifier, comment on can_avoid_reallocation()
Brian Paul
brianp at kemper.freedesktop.org
Thu Oct 6 17:30:56 UTC 2016
Module: Mesa
Branch: master
Commit: 92188c207eb2ec4525a026d3a95d483ac893e1cf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=92188c207eb2ec4525a026d3a95d483ac893e1cf
Author: Brian Paul <brianp at vmware.com>
Date: Sat Sep 24 07:33:59 2016 -0600
mesa: add const qualifier, comment on can_avoid_reallocation()
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/main/teximage.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 3f3d430..1d0a6a2 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -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)
{
More information about the mesa-commit
mailing list