From c27c382acc77e012c98f3dd994f4a58ed596cd60 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 20 Mar 2006 15:20:30 +0000 Subject: [PATCH] slightly improved error message --- src/mesa/main/buffers.c | 4 ++-- 1 file 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; } } -- 2.30.2