fixed bug causing out of sync textures across webgl programs