diff options
author | Marek Olšák <[email protected]> | 2013-02-14 12:48:12 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-02-18 17:57:41 +0100 |
commit | 6520a86c6755f52a1364fcd21dc36a5cb8381a0e (patch) | |
tree | ec9aa63d385007bc2946f2115bfb4a629356f4af /src/mesa/state_tracker | |
parent | 0a1479c829ed34a65e60c6619a8164e1b079aaee (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 4 |
1 files 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 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; |