diff options
author | Brian Paul <[email protected]> | 2006-03-20 15:20:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-03-20 15:20:30 +0000 |
commit | c27c382acc77e012c98f3dd994f4a58ed596cd60 (patch) | |
tree | eae87e527bebb9aa2f9293b962c02022ce7a0a3c | |
parent | 5319ed0e531b80038cebb4fef85f59bd2c3360a1 (diff) |
slightly improved error message
-rw-r--r-- | src/mesa/main/buffers.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |