(GL) Optimization to gl_copy_frame