mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
mesa: add const qualifier, comment on can_avoid_reallocation()
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
57279c5454
commit
92188c207e
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue