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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user