From 6520a86c6755f52a1364fcd21dc36a5cb8381a0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 14 Feb 2013 12:48:12 +0100 Subject: [PATCH] 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 --- src/mesa/state_tracker/st_cb_texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index b376f23..d2dccb4 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; -- 2.7.4