st/mesa: fix glCopyTexSubImage crash