mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
meta: Silence unused parameter warning in _mesa_meta_CopyTexSubImage
drivers/common/meta.c: In function '_mesa_meta_CopyTexSubImage': drivers/common/meta.c:3744:52: warning: unused parameter 'rb' [-Wunused-parameter] Unfortunately, the parameter can't just be removed because it is part of the dd_function_table::CopyTexSubImage interface. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
d156281cfe
commit
54b1082828
1 changed files with 6 additions and 0 deletions
|
|
@ -3821,6 +3821,12 @@ _mesa_meta_CopyTexSubImage(struct gl_context *ctx, GLuint dims,
|
|||
GLint bpp;
|
||||
void *buf;
|
||||
|
||||
/* The gl_renderbuffer is part of the interface for
|
||||
* dd_function_table::CopyTexSubImage, but this implementation does not use
|
||||
* it.
|
||||
*/
|
||||
(void) rb;
|
||||
|
||||
/* Choose format/type for temporary image buffer */
|
||||
format = _mesa_get_format_base_format(texImage->TexFormat);
|
||||
if (format == GL_LUMINANCE ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue