blitter: Don't try to disable sRGB linearization for MSAA textures

This is not supported and will issue a warning.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 6 years ago
parent b9e475bbff
commit 596e794616
  1. 3
      src/vrend_blitter.c

@ -805,7 +805,8 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx,
}
/* Just make sure that no stale state disabled decoding */
if (has_texture_srgb_decode && util_format_is_srgb(src_res->base.format))
if (has_texture_srgb_decode && util_format_is_srgb(info->src.format) &&
src_res->base.nr_samples < 2)
glTexParameteri(src_res->target, GL_TEXTURE_SRGB_DECODE_EXT, GL_DECODE_EXT);
if (src_res->base.nr_samples <= 1) {

Loading…
Cancel
Save