From: Kenneth Graunke Date: Sat, 3 Sep 2016 06:18:36 +0000 (-0700) Subject: mesa: Fix types in _mesa_get_color_read_format(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=096ad19a2b9e6ded0a73581839c9839f211b8f17;p=mesa.git 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 --- 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)