Must reset lastShader after swtiching shaders outside the "framework".