read back texture memory to system memory

Hi,

I’m looking for a way to read back the image in a texture to system memory so that I can save it to disc and look at it in Photoshop.

It’s for debugging some offscreen rendering I’m trying to get working.

Thanks,
Peter

glGetTexImage()

thanks!