mesa: added VERBOSE_SWAPBUFFERS

This commit is contained in:
Brian Paul 2009-10-14 16:24:35 -06:00
parent f9784072fe
commit 2fd5cb7133
3 changed files with 6 additions and 2 deletions

View File

@ -173,6 +173,8 @@ GLfloat _mesa_ubyte_to_float_color_tab[256];
void
_mesa_notifySwapBuffers(__GLcontext *ctx)
{
if (MESA_VERBOSE & VERBOSE_SWAPBUFFERS)
_mesa_debug(ctx, "SwapBuffers\n");
FLUSH_CURRENT( ctx, 0 );
if (ctx->Driver.Flush) {
ctx->Driver.Flush(ctx);

View File

@ -175,7 +175,8 @@ static void add_debug_flags( const char *debug )
{ "list", VERBOSE_DISPLAY_LIST },
{ "lighting", VERBOSE_LIGHTING },
{ "disassem", VERBOSE_DISASSEM },
{ "draw", VERBOSE_DRAW }
{ "draw", VERBOSE_DRAW },
{ "swap", VERBOSE_SWAPBUFFERS }
};
GLuint i;

View File

@ -3110,7 +3110,8 @@ enum _verbose
VERBOSE_PRIMS = 0x0400,
VERBOSE_VERTS = 0x0800,
VERBOSE_DISASSEM = 0x1000,
VERBOSE_DRAW = 0x2000
VERBOSE_DRAW = 0x2000,
VERBOSE_SWAPBUFFERS = 0x4000
};