From: Marek Olšák Date: Thu, 14 Feb 2013 11:48:12 +0000 (+0100) Subject: st/mesa: don't do sRGB conversion in CopyTexSubImage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6520a86c6755f52a1364fcd21dc36a5cb8381a0e;p=mesa.git st/mesa: don't do sRGB conversion in CopyTexSubImage Assuming I understand EXT_texture_sRGB correctly. NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index b376f23142a..d2dccb41186 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1418,8 +1418,8 @@ st_CopyTexSubImage(struct gl_context *ctx, GLuint dims, assert(strb->surface); assert(stImage->pt); - src_format = strb->surface->format; - dest_format = stImage->pt->format; + src_format = util_format_linear(strb->surface->format); + dest_format = util_format_linear(stImage->pt->format); if (do_flip) { srcY1 = strb->Base.Height - srcY - height;