Can't you pass GL_RGBA to the format parameter to get RGBA8 images back?
Edit: oh that's the draw pixel code, sorry.
glDrawPixels t.width,t.height,GL_RGBA,GL_UNSIGNED_BYTE,t.pixels
Edit: oh that's the draw pixel code, sorry.