mozilla/servo — pull request #1413 by dhedlund (2013-12-14 23:28:30+00:00)
Title: Adjust PNG encoder color type to match what's read from gl2

This should fix images produced by the -o flag.

The gl2::read_pixels call was asking for pixel data in RGB8 but was then telling the PNG encoder that the data was RGBA8. The value was originally set correctly, but was changed when support was added for drawing transparent PNGs.

We could instead adjust the gl2::read_pixels call to return RGBA8 so we can write transparent screenshots, but I'm not sure if there's a use case for that.