diff options
author | Henri Verbeet <[email protected]> | 2011-03-12 16:33:50 +0100 |
---|---|---|
committer | Henri Verbeet <[email protected]> | 2011-03-12 16:43:58 +0100 |
commit | ab21147c899ba1506df38438b6750d3dc5eaabdf (patch) | |
tree | 537a4fa2e2f0bec5b064f8118cd4d2b20ac6a3fc /src/mesa | |
parent | 6da4866ffdb19315bbb48f6778d1a5297b842a77 (diff) |
u_blitter: Do blits in linear color space.
Blits between sRGB and linear formats should happen in linear color space.
This fixes piglit fbo/fbo-srgb-blit.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 9e00fcf18b0..9d5eb113ff7 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1530,7 +1530,7 @@ st_copy_texsubimage(struct gl_context *ctx, GLint srcY0, srcY1; struct pipe_surface surf_tmpl; memset(&surf_tmpl, 0, sizeof(surf_tmpl)); - surf_tmpl.format = stImage->pt->format; + surf_tmpl.format = util_format_linear(stImage->pt->format); surf_tmpl.usage = PIPE_BIND_RENDER_TARGET; surf_tmpl.u.tex.level = stImage->level; surf_tmpl.u.tex.first_layer = stImage->face + destZ; |