projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69fca64
)
mesa: Fix types in _mesa_get_color_read_format().
author
Kenneth Graunke
<kenneth@whitecape.org>
Sat, 3 Sep 2016 06:18:36 +0000
(23:18 -0700)
committer
Kenneth 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/framebuffer.c
b/src/mesa/main/framebuffer.c
index
f024f5e
..
46a6f64
100644
(file)
--- 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)