mesa: Use correct enum conversion function.
authorVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 01:53:50 +0000 (18:53 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 17:56:38 +0000 (10:56 -0700)
Fixes "Mixing enum types" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/errors.c

index e1a9fe2f506c952b7f74f4a582e8de2a53514259..28357e0e81a04f312f5da669e8d35326589ba58b 100644 (file)
@@ -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);