st/mesa: call update_renderbuffer_surface for sRGB renderbuffers, too
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 20 Jul 2012 18:57:45 +0000 (20:57 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 28 Jul 2012 11:14:30 +0000 (13:14 +0200)
commit51e41a0d894109249448ecc6a6bfc09e095acada
tree96c598487d47d7ca4501731698d48fca3beffa34
parentacd66ec03346d37c593b5ba13e4c94ae11eef50d
st/mesa: call update_renderbuffer_surface for sRGB renderbuffers, too

sRGBEnabled should affect both textures and renderbuffers, so we need
to check/update the pipe_surface format for both.

Fixes, for instance, rendering appearing too bright in wine applications
using sRGB multisample renderbuffers.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_framebuffer.c