summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-09-02 23:18:36 -0700
committerKenneth Graunke <[email protected]>2016-09-05 17:37:55 -0700
commit096ad19a2b9e6ded0a73581839c9839f211b8f17 (patch)
tree3f04380220d887c622f75b3503cee29f0778cc27 /src/mesa/main
parent69fca64259495d7a31135876e818e1ac2a36d190 (diff)
mesa: Fix types in _mesa_get_color_read_format().
This is a mesa_format, not a GLenum. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/framebuffer.c2
1 files changed, 1 insertions, 1 deletions
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)