OPENGL: Fix rect copying to textures.

Thanks to wjp for spotting this one.