[Mesa-dev] [PATCH] mesa: Use correct enum conversion function.
Brian Paul
brianp at vmware.com
Tue Sep 10 06:54:22 PDT 2013
On 09/09/2013 07:57 PM, Vinson Lee wrote:
> Fixes "Mixing enum types" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> src/mesa/main/errors.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list