summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-20 15:20:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-20 15:20:30 +0000
commitc27c382acc77e012c98f3dd994f4a58ed596cd60 (patch)
treeeae87e527bebb9aa2f9293b962c02022ce7a0a3c
parent5319ed0e531b80038cebb4fef85f59bd2c3360a1 (diff)
slightly improved error message
-rw-r--r--src/mesa/main/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index 89e92036c8..121050593f 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;
}
}