From 09e385ee3bbe1d8bb572f2cdb6aa73401caa71b9 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 9 Sep 2013 18:53:50 -0700 Subject: [PATCH] mesa: Use correct enum conversion function. Fixes "Mixing enum types" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- src/mesa/main/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index e1a9fe2f506..28357e0e81a 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -856,7 +856,7 @@ _mesa_PushDebugGroup(GLenum source, GLuint id, GLsizei length, length = strlen(message); emptySlot = &ctx->Debug.DebugGroupMsgs[ctx->Debug.GroupStackDepth]; store_message_details(emptySlot, gl_enum_to_debug_source(source), - gl_enum_to_debug_source(GL_DEBUG_TYPE_PUSH_GROUP), + gl_enum_to_debug_type(GL_DEBUG_TYPE_PUSH_GROUP), id, gl_enum_to_debug_severity(GL_DEBUG_SEVERITY_NOTIFICATION), length, message); -- 2.30.2