Optimized usage of glUseProgram