mesa: use format string in _mesa_error() call to silence warning

(cherry picked from commit 5485192fc8)
This commit is contained in:
Brian Paul 2011-10-18 18:59:13 -06:00 committed by Henri Verbeet
parent 8a8ccc00b5
commit 658d994473

View file

@ -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);