r300g: fix a crash when resolving into an sRGB texture