Send correct arguments to texSubImage2D

Fixes #2672