mesa: Fix types in _mesa_get_color_read_format().
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 3 Sep 2016 06:18:36 +0000 (23:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 6 Sep 2016 00:37:55 +0000 (17:37 -0700)
This is a mesa_format, not a GLenum.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/framebuffer.c

index f024f5e..46a6f64 100644 (file)
@@ -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)