Gets the RGBA pixel array from a gl-texture2d object