Mesa (master): mesa: Use correct enum conversion function.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Sep 10 17:56:44 UTC 2013
Module: Mesa
Branch: master
Commit: 09e385ee3bbe1d8bb572f2cdb6aa73401caa71b9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=09e385ee3bbe1d8bb572f2cdb6aa73401caa71b9
Author: Vinson Lee <vlee at freedesktop.org>
Date: Mon Sep 9 18:53:50 2013 -0700
mesa: Use correct enum conversion function.
Fixes "Mixing enum types" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/errors.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index e1a9fe2..28357e0 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -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);
More information about the mesa-commit
mailing list