From: Brian Paul Date: Wed, 4 Feb 2009 21:22:12 +0000 (-0700) Subject: mesa: more info in error messages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ca05a066b8d8cb8a99da88743a48f7d97f695fe;p=mesa.git mesa: more info in error messages --- diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index dc415c4f20c..7877ee00451 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -247,13 +247,14 @@ _mesa_DrawBuffer(GLenum buffer) destMask = draw_buffer_enum_to_bitmask(buffer); if (destMask == BAD_MASK) { /* totally bogus buffer */ - _mesa_error(ctx, GL_INVALID_ENUM, "glDrawBuffer(buffer)"); + _mesa_error(ctx, GL_INVALID_ENUM, "glDrawBuffer(buffer=0x%x)", buffer); return; } destMask &= supportedMask; if (destMask == 0x0) { /* none of the named color buffers exist! */ - _mesa_error(ctx, GL_INVALID_OPERATION, "glDrawBuffer(buffer)"); + _mesa_error(ctx, GL_INVALID_OPERATION, + "glDrawBuffer(buffer=0x%x)", buffer); return; } }