From: Brian Paul Date: Mon, 20 Mar 2006 15:20:30 +0000 (+0000) Subject: slightly improved error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c27c382acc77e012c98f3dd994f4a58ed596cd60;p=mesa.git slightly improved error message --- diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 89e92036c86..121050593f6 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -547,12 +547,12 @@ _mesa_ReadBuffer(GLenum buffer) /* general case / window-system framebuffer */ srcBuffer = read_buffer_enum_to_index(buffer); if (srcBuffer == -1) { - _mesa_error(ctx, GL_INVALID_ENUM, "glReadBuffer(buffer)"); + _mesa_error(ctx, GL_INVALID_ENUM, "glReadBuffer(buffer=0x%x)", buffer); return; } supportedMask = supported_buffer_bitmask(ctx, bufferID); if (((1 << srcBuffer) & supportedMask) == 0) { - _mesa_error(ctx, GL_INVALID_OPERATION, "glReadBuffer(buffer)"); + _mesa_error(ctx, GL_INVALID_OPERATION, "glReadBuffer(buffer=0x%x)", buffer); return; } }