- glTexSubImage3D(target, level, x, y, z, wd, ht, dp, fmt, type, data);
+ fmt = get_upload_format(fmt);
+ if(ARB_direct_state_access)
+ glTextureSubImage3D(id, level, x, y, z, wd, ht, dp, fmt, type, data);
+ else
+ glTexSubImage3D(target, level, x, y, z, wd, ht, dp, fmt, type, data);