Mesa (master): mesa: fix debug/error messages in glColorMaski()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Aug 24 09:20:42 UTC 2017


Module: Mesa
Branch: master
Commit: f8b47b4789770ac9c502a4722a10437b460c3b21
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8b47b4789770ac9c502a4722a10437b460c3b21

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Aug 23 16:43:32 2017 +0200

mesa: fix debug/error messages in glColorMaski()

Trivial. While we are at it, adjust indentation.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

---

 src/mesa/main/blend.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index 5c496d9970..01721ab615 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -990,18 +990,18 @@ _mesa_ColorMask( GLboolean red, GLboolean green,
  * For GL_EXT_draw_buffers2 and GL3
  */
 void GLAPIENTRY
-_mesa_ColorMaski( GLuint buf, GLboolean red, GLboolean green,
-                        GLboolean blue, GLboolean alpha )
+_mesa_ColorMaski(GLuint buf, GLboolean red, GLboolean green,
+                 GLboolean blue, GLboolean alpha)
 {
    GLubyte tmp[4];
    GET_CURRENT_CONTEXT(ctx);
 
    if (MESA_VERBOSE & VERBOSE_API)
-      _mesa_debug(ctx, "glColorMaskIndexed %u %d %d %d %d\n",
+      _mesa_debug(ctx, "glColorMaski %u %d %d %d %d\n",
                   buf, red, green, blue, alpha);
 
    if (buf >= ctx->Const.MaxDrawBuffers) {
-      _mesa_error(ctx, GL_INVALID_VALUE, "glColorMaskIndexed(buf=%u)", buf);
+      _mesa_error(ctx, GL_INVALID_VALUE, "glColorMaski(buf=%u)", buf);
       return;
    }
 




More information about the mesa-commit mailing list