diff options
author | Vinson Lee <[email protected]> | 2013-03-10 22:51:23 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-03-11 23:44:10 -0700 |
commit | 543d0328853f60b88748b28ba702f5f12f000b95 (patch) | |
tree | 836b7e1d2003704c7ef09b8f28705cf88359ac91 /src/mesa/main/errors.c | |
parent | 6173cc19c45d92ef0b7bc6aa008aa89bb29abbda (diff) |
mesa: Use correct functions for enum conversion.
Fixes mixing enum types defects reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r-- | src/mesa/main/errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |