I'm using twgl for render some images in webgl. I need to dynamically add an Image to this array of 2d Textures.
I was using twgl.createTexture function to do this until know but there is a problem.
after I push some new image to my array of images and call twgl.createTexture to pass it to webgl and after that render my objects the images will not be shown correctly and instead of image a blue square will appear .
and when I manually render it again it makes correct and it will not break until use twgl.createTexture again.
I think that is becouse this function will make a new webglTexture instead update the previous one
I wants to know is there a way to update last texture with the last special array which has pushed some new image into it?
** when I say image I mean a base64 string or a loaded and cached url **