Instead of moving glUseProgram, I just inserted a new one. Because I imagine in the not-too-distant future shells will get some control of the rendering loop. And when that happens we can no longer assume there's only one GL program between begin() and render().
Thanks Alexandros. All fixed.
Instead of moving glUseProgram, I just inserted a new one. Because I imagine in the not-too-distant future shells will get some control of the rendering loop. And when that happens we can no longer assume there's only one GL program between begin() and render().