[Mesa-dev] [PATCH 5/7] st/mesa: don't do sRGB conversion in CopyTexSubImage
Marek Olšák
maraeo at gmail.com
Thu Feb 14 06:53:25 PST 2013
Assuming I understand EXT_texture_sRGB correctly.
NOTE: This is a candidate for the stable branches.
---
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;
--
1.7.10.4
More information about the mesa-dev
mailing list