mesa: Use correct functions for enum conversion.
authorVinson Lee <vlee@freedesktop.org>
Mon, 11 Mar 2013 05:51:23 +0000 (22:51 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 12 Mar 2013 06:44:10 +0000 (23:44 -0700)
Fixes mixing enum types defects reported by Coverity.

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

index 97f1b8a..684f235 100644 (file)
@@ -651,8 +651,8 @@ _mesa_DebugMessageControlARB(GLenum gl_source, GLenum gl_type,
       return;
    }
 
-   source = gl_enum_to_debug_severity(gl_source);
-   type = gl_enum_to_debug_severity(gl_type);
+   source = gl_enum_to_debug_source(gl_source);
+   type = gl_enum_to_debug_type(gl_type);
    severity = gl_enum_to_debug_severity(gl_severity);
 
    control_app_messages(ctx, source, type, severity, count, ids, enabled);