added updateTexture to all webgl elements