diff options
author | Eric Anholt <eric@anholt.net> | 2013-09-19 08:45:07 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2013-10-01 14:11:10 -0700 |
commit | 26ffbf6f391542b40c4ffe9b08f5cdc88efe18c9 (patch) | |
tree | 1d073314fc2c2332513d56481db9279a57080dbc /src | |
parent | 421141192f0c35f8cb7dd4580a4fdedc7bb60104 (diff) |
i965: Reenable glBitmap() after the sRGB winsys enabling.
The format of the window system framebuffer changed from ARGB8888 to
SARGB8, but we're still supposed to render to it the same as ARGB8888
unless the user flipped the GL_FRAMEBUFFER_SRGB switch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
NOTE: This is a candidate for stable branches.
(cherry picked from commit 48b9720272184d884b21524ae0b5318d42019793)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_pixel_bitmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c b/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c index 5398cb878ef..91f21a3ca4e 100644 --- a/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c +++ b/src/mesa/drivers/dri/i965/intel_pixel_bitmap.c @@ -25,6 +25,7 @@ * **************************************************************************/ +#include "main/blend.h" #include "main/glheader.h" #include "main/enums.h" #include "main/image.h" @@ -227,7 +228,7 @@ do_blit_bitmap( struct gl_context *ctx, UNCLAMPED_FLOAT_TO_UBYTE(ubcolor[2], tmpColor[2]); UNCLAMPED_FLOAT_TO_UBYTE(ubcolor[3], tmpColor[3]); - switch (irb->mt->format) { + switch (_mesa_get_render_format(ctx, intel_rb_format(irb))) { case MESA_FORMAT_ARGB8888: case MESA_FORMAT_XRGB8888: color = PACK_COLOR_8888(ubcolor[3], ubcolor[0], ubcolor[1], ubcolor[2]); |