Use glReadPixels instead of glGetTexImage, if we are using GLES