code: public boolean useShader(GLShader shader) {
      if (curShader == shader)
        return false;
      checkGLError("useShader");
      flush(true);
      curShader = shader;
      return true;
    }
docs: Makes the supplied shader the current shader, flushing any previous shader.