New _mesa_debug() function to replace fprintf() calls.
Some source files updated to call _mesa_debug(), but not finished. Added __GLimports as a parameter to _mesa_create/init_context() and updated drivers accordingly. Fleshed-out more of the __GLimports and __GLexports functionality. Removed run-time config file support (config.c)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: buffers.c,v 1.34 2002/04/19 00:23:08 brianp Exp $ */
|
||||
/* $Id: buffers.c,v 1.35 2002/06/13 04:28:29 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
@@ -97,7 +97,7 @@ _mesa_Clear( GLbitfield mask )
|
||||
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
fprintf(stderr, "glClear 0x%x\n", mask);
|
||||
_mesa_debug("glClear 0x%x\n", mask);
|
||||
|
||||
if (mask & ~(GL_COLOR_BUFFER_BIT |
|
||||
GL_DEPTH_BUFFER_BIT |
|
||||
@@ -146,7 +146,7 @@ _mesa_DrawBuffer( GLenum mode )
|
||||
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
fprintf(stderr, "glDrawBuffer %s\n", _mesa_lookup_enum_by_nr(mode));
|
||||
_mesa_debug("glDrawBuffer %s\n", _mesa_lookup_enum_by_nr(mode));
|
||||
|
||||
switch (mode) {
|
||||
case GL_AUX0:
|
||||
@@ -298,7 +298,7 @@ _mesa_ReadBuffer( GLenum mode )
|
||||
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
fprintf(stderr, "glReadBuffer %s\n", _mesa_lookup_enum_by_nr(mode));
|
||||
_mesa_debug("glReadBuffer %s\n", _mesa_lookup_enum_by_nr(mode));
|
||||
|
||||
switch (mode) {
|
||||
case GL_AUX0:
|
||||
@@ -360,7 +360,7 @@ _mesa_ResizeBuffersMESA( void )
|
||||
GLcontext *ctx = _mesa_get_current_context();
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
fprintf(stderr, "glResizeBuffersMESA\n");
|
||||
_mesa_debug("glResizeBuffersMESA\n");
|
||||
|
||||
if (ctx) {
|
||||
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH( ctx );
|
||||
@@ -416,7 +416,7 @@ _mesa_Scissor( GLint x, GLint y, GLsizei width, GLsizei height )
|
||||
}
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
fprintf(stderr, "glScissor %d %d %d %d\n", x, y, width, height);
|
||||
_mesa_debug("glScissor %d %d %d %d\n", x, y, width, height);
|
||||
|
||||
if (x == ctx->Scissor.X &&
|
||||
y == ctx->Scissor.Y &&
|
||||
|
Reference in New Issue
Block a user