Ubo needs to be rebound every times the shader changes. This simplify the logic a bit. Also modify texture binding logic to potentially reuse more already bound textures.
Ubo needs to be rebound every times the shader changes. This simplify the logic a bit. Also modify texture binding logic to potentially reuse more already bound textures.