Browse Source

added missing ctx parameter to _mesa_debug() calls

tags/mesa_4_1
Brian Paul 23 years ago
parent
commit
9d47f3d6b8
2 changed files with 5 additions and 4 deletions
  1. 2
    2
      src/mesa/main/feedback.c
  2. 3
    2
      src/mesa/main/hint.c

+ 2
- 2
src/mesa/main/feedback.c View File

@@ -1,4 +1,4 @@
/* $Id: feedback.c,v 1.25 2002/06/13 04:28:29 brianp Exp $ */
/* $Id: feedback.c,v 1.26 2002/06/15 02:54:01 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -340,7 +340,7 @@ _mesa_RenderMode( GLenum mode )
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, 0);

if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug("glRenderMode %s\n", _mesa_lookup_enum_by_nr(mode));
_mesa_debug(ctx, "glRenderMode %s\n", _mesa_lookup_enum_by_nr(mode));

FLUSH_VERTICES(ctx, _NEW_RENDERMODE);


+ 3
- 2
src/mesa/main/hint.c View File

@@ -1,4 +1,4 @@
/* $Id: hint.c,v 1.12 2002/06/15 02:38:15 brianp Exp $ */
/* $Id: hint.c,v 1.13 2002/06/15 02:54:02 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -44,7 +44,8 @@ _mesa_Hint( GLenum target, GLenum mode )
ASSERT_OUTSIDE_BEGIN_END(ctx);

if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug("glHint %s %d\n", _mesa_lookup_enum_by_nr(target), mode);
_mesa_debug(ctx, "glHint %s %d\n",
_mesa_lookup_enum_by_nr(target), mode);

if (mode != GL_NICEST && mode != GL_FASTEST && mode != GL_DONT_CARE) {
_mesa_error(ctx, GL_INVALID_ENUM, "glHint(mode)");

Loading…
Cancel
Save