Mesa (master): mesa: Use correct functions for enum conversion.

Vinson Lee vlee at kemper.freedesktop.org
Tue Mar 12 06:57:31 UTC 2013


Module: Mesa
Branch: master
Commit: 543d0328853f60b88748b28ba702f5f12f000b95
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=543d0328853f60b88748b28ba702f5f12f000b95

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sun Mar 10 22:51:23 2013 -0700

mesa: Use correct functions for enum conversion.

Fixes mixing enum types defects reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 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 97f1b8a..684f235 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);




More information about the mesa-commit mailing list