slightly improved error message
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 20 Mar 2006 15:20:30 +0000 (15:20 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 20 Mar 2006 15:20:30 +0000 (15:20 +0000)
src/mesa/main/buffers.c

index 89e92036c86cc324fc6799302e4e6511976c0abb..121050593f65c2d2693eea7fc8782d6da5e295bd 100644 (file)
@@ -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;
       }
    }