From: Vinson Lee Date: Mon, 11 Mar 2013 05:51:23 +0000 (-0700) Subject: mesa: Use correct functions for enum conversion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=543d0328853f60b88748b28ba702f5f12f000b95;p=mesa.git mesa: Use correct functions for enum conversion. Fixes mixing enum types defects reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul Reviewed-by: Eric Anholt --- diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 97f1b8a0389..684f235c32a 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -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);