summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-02-14 12:48:12 +0100
committerMarek Olšák <[email protected]>2013-02-18 17:57:41 +0100
commit6520a86c6755f52a1364fcd21dc36a5cb8381a0e (patch)
treeec9aa63d385007bc2946f2115bfb4a629356f4af /src/mesa
parent0a1479c829ed34a65e60c6619a8164e1b079aaee (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')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c4
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;