From 096ad19a2b9e6ded0a73581839c9839f211b8f17 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 2 Sep 2016 23:18:36 -0700 Subject: [PATCH] mesa: Fix types in _mesa_get_color_read_format(). This is a mesa_format, not a GLenum. Signed-off-by: Kenneth Graunke Reviewed-by: Ilia Mirkin --- src/mesa/main/framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c index f024f5e9337..46a6f644f06 100644 --- a/src/mesa/main/framebuffer.c +++ b/src/mesa/main/framebuffer.c @@ -851,7 +851,7 @@ _mesa_get_color_read_format(struct gl_context *ctx) return GL_NONE; } else { - const GLenum format = ctx->ReadBuffer->_ColorReadBuffer->Format; + const mesa_format format = ctx->ReadBuffer->_ColorReadBuffer->Format; const GLenum data_type = _mesa_get_format_datatype(format); if (format == MESA_FORMAT_B8G8R8A8_UNORM) -- 2.30.2