Mesa (master): mesa: Fix types in _mesa_get_color_read_format().
Kenneth Graunke
kwg at kemper.freedesktop.org
Tue Sep 6 00:47:39 UTC 2016
Module: Mesa
Branch: master
Commit: 096ad19a2b9e6ded0a73581839c9839f211b8f17
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=096ad19a2b9e6ded0a73581839c9839f211b8f17
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Sep 2 23:18:36 2016 -0700
mesa: Fix types in _mesa_get_color_read_format().
This is a mesa_format, not a GLenum.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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 f024f5e..46a6f64 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)
More information about the mesa-commit
mailing list