texSubImage2DIf method
void
texSubImage2DIf()
Implementation
void texSubImage2DIf(int target, int level, int x, int y, int glFormat, int glType, ImageElement image) {
if (kIsWeb && image.data is! NativeArray) {
texSubImage2DNoSize(WebGL.TEXTURE_2D, level, x, y, glFormat, glType, image.data);
}
else {
texSubImage2D(WebGL.TEXTURE_2D, level, x, y, image.width, image.height, glFormat, glType, image.data);
}
}