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 <brianp@vmware.com>
This commit is contained in:
Marek Olšák
2013-02-14 12:48:12 +01:00
parent 0a1479c829
commit 6520a86c67
+2 -2
View File
@@ -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;