summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-09-09 18:53:50 -0700
committerVinson Lee <[email protected]>2013-09-10 10:56:38 -0700
commit09e385ee3bbe1d8bb572f2cdb6aa73401caa71b9 (patch)
treef57778f40fb34d1a1d44d56a120d91942f366912 /src/mesa
parentfd66a85f6bd974150e112c0f7275190c1f55bf8f (diff)
mesa: Use correct enum conversion function.
Fixes "Mixing enum types" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index e1a9fe2f506..28357e0e81a 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);