check array dirty flag in Texture::onCreate