mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
mesa: use format string in _mesa_error() call to silence warning
(cherry picked from commit 5485192fc8)
This commit is contained in:
parent
8a8ccc00b5
commit
658d994473
1 changed files with 1 additions and 1 deletions
|
|
@ -4529,7 +4529,7 @@ static GLvoid *copy_data(const GLvoid *data, GLsizei size, const char *func)
|
|||
|
||||
image = malloc(size);
|
||||
if (!image) {
|
||||
_mesa_error(ctx, GL_OUT_OF_MEMORY, func);
|
||||
_mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func);
|
||||
return NULL;
|
||||
}
|
||||
memcpy(image, data, size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue